Version: Revision 800924 (using Devel) Installed from: Compiled sources The show/hide hidden files action added on bug #159702 should be improved: when the action (show or hide) is called, all folders are collapsed. For example if you've your home directory expanded and you choose to view the hidden folders, the directory tree will be collapsed and you've to manually go back to the previously selected folder.
*** Bug 179033 has been marked as a duplicate of this bug. ***
Is this a "kio/file" problem (like it was bug #179033) or is a kdelibs related problem?
Some analysis: KDirSelectDialog uses a KFileTreeView object to show the directory tree. When toggling the "show hidden files" action, it calls "void KFileTreeView::setShowHiddenFiles(bool enabled)" which reloads the tree (as it is needed to update the file list and display/hide the hidden files). However it doesn't jump back to the previous selected location. This could be fixed on KFileTreeView or in KDirSelectDialog. Doing it inside KFileTreeView will produce a smaller patch, however I don't know if any other application needs the behaviour described in this bug report, so we should fix the bug in KDirSelectDialog instead... (however, it makes sense to "preserve" the currently selected dir in ALL the cases...)
SVN commit 972880 by darioandres: When the user chooses to toggle the "Show Hidden Files" states, the treeview is reload but the current selection is missing. This patch re-selects the previous selected URL BUG: 161323 M +2 -0 kfiletreeview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=972880
SVN commit 972882 by darioandres: Backport to 4.2branch of: SVN commit 972880 by darioandres: When the user chooses to toggle the "Show Hidden Files" states, the treeview is reload but the current selection is missing. This patch re-selects the previous selected URL CCBUG: 161323 M +2 -0 kfiletreeview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=972882
many thanks :)