From: Matthias Fuchs Date: Wed, 1 Jun 2011 22:56:54 +0000 (+0200) Subject: Keeps the selection after showing/hiding hidden files. X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/ea6dc3fde7d545cceab32b7c53df4359adf6d505 Keeps the selection after showing/hiding hidden files. 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 --- diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 4bc901b9a..681ce74f7 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -688,6 +688,8 @@ void DolphinView::setShowHiddenFiles(bool show) return; } + m_selectedItems = selectedItems(); + const KUrl viewPropsUrl = rootUrl(); ViewProperties props(viewPropsUrl); props.setShowHiddenFiles(show);