From 9d5d18739fde76f2d606a4cc9f1e7cc442faa7e0 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 6 Dec 2011 21:15:36 +0100 Subject: Selection and current item fixes - Remember selection + current item when switching view-modes - Fix the current item indicator alignment for selections - Set the item as current item when the selection toggle has been clicked --- src/views/dolphinview.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 94eed5cf3..d839c61a3 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1135,6 +1135,11 @@ void DolphinView::applyViewProperties() // has been modified. const bool restoreModel = (model->count() > 0); if (restoreModel) { + const int currentItemIndex = m_container->controller()->selectionManager()->currentItem(); + if (currentItemIndex >= 0) { + m_currentItemUrl = model->fileItem(currentItemIndex).url(); + } + m_selectedUrls = selectedItems().urlList(); model->clear(); } -- cgit v1.3