┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.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/dolphinview.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/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index dff8120c7..476f6591d 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -246,7 +246,7 @@ void DolphinView::setMode(Mode mode)
emit modeChanged();
updateZoomLevel(oldZoomLevel);
- if (m_showPreview) {
+ if (m_showPreview) {
loadDirectory(viewPropsUrl);
}
}
@@ -1173,7 +1173,6 @@ void DolphinView::loadDirectory(const KUrl& url, bool reload)
connect(m_viewAccessor.dirLister(), SIGNAL(completed()), this, SLOT(restoreSelection()));
}
- m_viewAccessor.dirLister()->stop();
m_viewAccessor.dirLister()->openUrl(url, reload ? KDirLister::Reload : KDirLister::NoFlags);
}