Keeps the selection after showing/hiding hidden files.
Review Request #101487 - Created June 1, 2011 and submitted
Still only files that are shown will be selected, thus selecting hidden files and then hiding hidden files will deselect those.
Thanks for the patch. I just had a look and if I don't miss anything it should be sufficient to just add the line: m_selectedItems = selectedItems(); to DolphinView::setShowHiddenFiles(). I'm not really happy with how the selections are remembered in DolphinView in general: We have m_selectedItems to remember the selection when e.g. changing views and there is m_newFileNames for the usecase where the KFileItems are not available yet and only the new names are known. I'm currently working on a (let's say) "new view-engine" in Dolphin for 4.8 that should allow us to get rid of at least m_selectedItems but for 4.7 it would be great if we could get in this fix. Would it be possible that you check whether 'm_selectedItems = selectedItems();' is sufficient? I'm quite sure this should work but probably I'm missing something... Thanks :-)