Bug 495878 - Customizing the default view settings doesn't work anymore
Summary: Customizing the default view settings doesn't work anymore
Status: ASSIGNED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: git-master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: regression
: 497405 497461 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-11-06 14:57 UTC by Jan Rathmann
Modified: 2024-12-14 15:13 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Rathmann 2024-11-06 14:57:08 UTC
SUMMARY
Configuring the default view settings for folders that have no individual view settings doesn't work anymore currently, custom settings for the default view seem to be just getting ignored by Dolphin.

STEPS TO REPRODUCE
1. Open Dolphin (build from master, or e.g. boot live image of openSUSE Krypton).
2. Default view mode is "Symbols".
3. Create a fresh test folder, and fill it with content (an empty file is sufficient).
4. Go to the folder above your test folder.
5. Enable menu bar (Ctrl+M)
6. Enable "Settings -> Configure Dolphin -> View -> Remember display style for each folder"
7. Open "View -> Adjust View Display Style..."
8. Set "View mode" to "Details" and check "Use as default view settings", click OK.
9. Go to the test folder.

OBSERVED RESULT
View mode of test folder is still set to "Symbols", despite "Details" was configured in the steps before.

EXPECTED RESULT
View mode of test folder should be "Details", respecting the default view settings made before.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.9.0 
Qt Version: 6.8.0

ADDITIONAL INFORMATION
Reproduced with:
* Dolphin build from master with kdesrc-build
* Dolphin from openSuse Krypton current live image running in a VM.
Comment 1 TraceyC 2024-11-08 01:53:51 UTC
Confirmed on git-master Dolphin

Operating System: Solus 4.6
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.9.0
Qt Version: 6.7.3
Kernel Version: 6.11.5-307.current (64-bit)
Comment 2 Felix Ernst 2024-11-08 16:31:26 UTC
(In reply to Jan Rathmann from comment #0)
> SUMMARY
> Configuring the default view settings for folders that have no individual
> view settings doesn't work anymore currently, custom settings for the
> default view seem to be just getting ignored by Dolphin.

Seems indeed like we might be saving view properties even for folders for which an explicit view mode has never been set. The fix would be to not save anything for them.
Comment 3 Akseli Lahtinen 2024-12-04 11:11:19 UTC
Seems the "Use as default view settings" sets the default settings for the current folder only. It doesn't propagate to any new folders or such.

In fact the setting is not even saved. When you toggle the checkbox, click ok and open the view settings again, the checkbox is off again.
Comment 4 Bug Janitor Service 2024-12-04 15:09:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/870
Comment 5 Akseli Lahtinen 2024-12-13 14:01:05 UTC
*** Bug 497405 has been marked as a duplicate of this bug. ***
Comment 6 Iyán Méndez Veiga 2024-12-13 18:50:12 UTC
The patch fixes the issue for me.
Comment 7 Paul Worrall 2024-12-14 15:13:50 UTC
*** Bug 497461 has been marked as a duplicate of this bug. ***