┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-12-21 21:45:46 +0100
committerPeter Penz <[email protected]>2011-12-21 21:48:24 +0100
commit965107fd024be86eb014ee360211a66b320a3b43 (patch)
tree7f9f21326b890811febc9e98d0224649acb99f12 /src/views
parent5e0e05e8f0c82e987cc56a17bdac1718e8feb320 (diff)
Update previews when the preview-plugin settings have changed
Thanks to Janardhan Reddy for the initial patch. BUG: 288726 FIXED-IN: 4.8.0
Diffstat (limited to 'src/views')
-rw-r--r--src/views/dolphinitemlistcontainer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/views/dolphinitemlistcontainer.cpp b/src/views/dolphinitemlistcontainer.cpp
index 870043bc4..9e7a15f74 100644
--- a/src/views/dolphinitemlistcontainer.cpp
+++ b/src/views/dolphinitemlistcontainer.cpp
@@ -176,6 +176,13 @@ void DolphinItemListContainer::refresh()
updateFont();
updateGridSize();
+
+ const KConfigGroup globalConfig(KGlobal::config(), "PreviewSettings");
+ const QStringList plugins = globalConfig.readEntry("Plugins", QStringList()
+ << "directorythumbnail"
+ << "imagethumbnail"
+ << "jpegthumbnail");
+ m_fileItemListView->setEnabledPlugins(plugins);
}
void DolphinItemListContainer::updateGridSize()