]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Keeps the selection after showing/hiding hidden files.
authorMatthias Fuchs <mat69@gmx.net>
Wed, 1 Jun 2011 22:56:54 +0000 (00:56 +0200)
committerMatthias Fuchs <mat69@gmx.net>
Wed, 1 Jun 2011 22:59:56 +0000 (00:59 +0200)
Still only files that are shown will be selected, thus selecting hidden files and then hiding hidden files will deselect those.
BUG:177215
REVIEW:101487

src/views/dolphinview.cpp

index 4bc901b9a15d80b0d1a5b4f6e30e6c9bcb9033c1..681ce74f7fe352f4305ee439069984bb2e2d4106 100644 (file)
@@ -688,6 +688,8 @@ void DolphinView::setShowHiddenFiles(bool show)
         return;
     }
 
         return;
     }
 
+    m_selectedItems = selectedItems();
+
     const KUrl viewPropsUrl = rootUrl();
     ViewProperties props(viewPropsUrl);
     props.setShowHiddenFiles(show);
     const KUrl viewPropsUrl = rootUrl();
     ViewProperties props(viewPropsUrl);
     props.setShowHiddenFiles(show);