]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix the hidden "EnlargeSmallPreviews" option
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 3 Oct 2012 08:14:20 +0000 (10:14 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 3 Oct 2012 08:14:20 +0000 (10:14 +0200)
This option, introduced in 99e4eb0f3a58c53277b099114a5fd8945937fb9a, did
not work any more since 2069c200211c93e401c3d19850f41eade09d64be.

CCBUG: 307522

src/views/dolphinview.cpp

index f0dc3cabacf275b906cc36c8f52f66699c56e20b..624aa185db8971a5341b506f0fcb4084827293ce 100644 (file)
@@ -122,7 +122,6 @@ DolphinView::DolphinView(const KUrl& url, QWidget* parent) :
     m_model = new KFileItemModel(this);
     m_view = new DolphinItemListView();
     m_view->setEnabledSelectionToggles(GeneralSettings::showSelectionToggle());
-    m_view->setEnlargeSmallPreviews(GeneralSettings::enlargeSmallPreviews());
     m_view->setVisibleRoles(QList<QByteArray>() << "text");
     applyModeToView();
 
@@ -130,6 +129,10 @@ DolphinView::DolphinView(const KUrl& url, QWidget* parent) :
     const int delay = GeneralSettings::autoExpandFolders() ? 750 : -1;
     controller->setAutoActivationDelay(delay);
 
+    // The EnlargeSmallPreviews setting can only be changed after the model
+    // has been set in the view by KItemListController.
+    m_view->setEnlargeSmallPreviews(GeneralSettings::enlargeSmallPreviews());
+
     m_container = new KItemListContainer(controller, this);
     m_container->installEventFilter(this);
     setFocusProxy(m_container);