┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-09-11 19:50:40 +0000
committerPeter Penz <[email protected]>2009-09-11 19:50:40 +0000
commitfda626e07459cbd6901cbeb51da1058d0d4b3f8c (patch)
treeb2ee3f7ae02b098829173af7cbd85fe07cbf25e4 /src/dolphindetailsview.cpp
parente725c334fb9f3da9e261f1701b21c73585bdb1e9 (diff)
Fixed minor regression introduced with the column view refactoring: When switching the view mode in a folder showing previews, the previews get lost after switching.
The KFilePreviewGenerator initialized in the ViewExtensionsFactory wants a valid icon size to accept previews. Fixed + Q_ASSERT added to prevent such a mistake in future. svn path=/trunk/KDE/kdebase/apps/; revision=1022453
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index cf487b5e7..3dca2da28 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -151,11 +151,11 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent,
connect(m_expandableFoldersAction, SIGNAL(toggled(bool)),
this, SLOT(setFoldersExpandable(bool)));
+ updateDecorationSize(view->showPreview());
+
m_extensionsFactory = new ViewExtensionsFactory(this, controller);
m_extensionsFactory->fileItemDelegate()->setMinimizedNameColumn(true);
m_extensionsFactory->setAutoFolderExpandingEnabled(settings->expandableFolders());
-
- updateDecorationSize(view->showPreview());
}
DolphinDetailsView::~DolphinDetailsView()