Summary: | Select folder dialog collapse directories selecting "show/hide hidden files" | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | FiNeX <finex> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andresbajotierra, vandammeru |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
FiNeX
2008-04-27 12:58:23 UTC
*** 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 :) |