┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2022-10-23 19:37:50 +0200
committerFelix Ernst <[email protected]>2022-10-27 09:40:03 +0000
commitf267544472905c44d5d9721d18a5a6785bccb3ee (patch)
treefca79d05b6e86fc6c0997fef0300884a5f33e9bc /src
parent57cdee59512e0c0fe11d3e98c2258431bcd87f51 (diff)
Fix view mode-specific settings not always applying
When the current view mode is different from the view mode for which settings were changed in Dolphin's settings dialog, those changes were sometimes not present when then changing the view mode of a view to the view mode for which settings were changed. This commit fixes this by always loading the settings for all view modes in the DolphinItemListView even if the view is currently using only one of those view modes.
Diffstat (limited to 'src')
-rw-r--r--src/views/dolphinitemlistview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/views/dolphinitemlistview.cpp b/src/views/dolphinitemlistview.cpp
index 60d5577b8..5dec2b1f8 100644
--- a/src/views/dolphinitemlistview.cpp
+++ b/src/views/dolphinitemlistview.cpp
@@ -77,8 +77,10 @@ void DolphinItemListView::setEnabledSelectionToggles(DolphinItemListView::Select
void DolphinItemListView::readSettings()
{
- ViewModeSettings settings(itemLayout());
- settings.readConfig();
+ // We load the settings for all view modes now because we don't load them when the view mode changes.
+ IconsModeSettings::self()->load();
+ CompactModeSettings::self()->load();
+ DetailsModeSettings::self()->load();
beginTransaction();