From fda626e07459cbd6901cbeb51da1058d0d4b3f8c Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 11 Sep 2009 19:50:40 +0000 Subject: 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 --- src/dolphindetailsview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dolphindetailsview.cpp') 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() -- cgit v1.3