diff options
| author | Peter Penz <[email protected]> | 2009-12-19 17:38:38 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-12-19 17:38:38 +0000 |
| commit | 11abae0a1ddbeed2adf8631dd4392812184a5f2b (patch) | |
| tree | fa318a3bfec450f933a4801dcdc28bff891fca97 | |
| parent | ea258a5f09d453dcb0781421b879b66b521d7c5e (diff) | |
Don't rely on that the same proxy model is used for all views. Trigger a refresh of the directory (done from the cache) and remember the selection. This fixes also the issue that the selection got lost when previews have been enabled or when the column view was used.
BUG: 217562
CCBUG: 211149
svn path=/trunk/KDE/kdebase/apps/; revision=1063960
| -rw-r--r-- | src/dolphinview.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 6f36d1655..3e998d71b 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -222,6 +222,10 @@ void DolphinView::setMode(Mode mode) const int oldZoomLevel = m_controller->zoomLevel(); m_mode = mode; + // remember the currently selected items, so that they will + // be restored after reloading the directory + m_selectedItems = selectedItems(); + deleteView(); const KUrl viewPropsUrl = rootUrl(); @@ -248,9 +252,7 @@ void DolphinView::setMode(Mode mode) emit modeChanged(); updateZoomLevel(oldZoomLevel); - if (m_showPreview) { - loadDirectory(viewPropsUrl); - } + loadDirectory(viewPropsUrl); } DolphinView::Mode DolphinView::mode() const |
