If there is a tree with several sub-nodes expanded in the folder panel and the user collapses an upper level node, Dolphin forgets which sub-nodes were expanded.
When the user expands again the same node which had been collapsed, only the next level subnodes are shown.
This is a regression. Dolphin used to remember which nodes were expanded and did show the tree exactly as it was before it was collapsed. I don't know in which version this behavior changed.
Steps to Reproduce:
1. In folder view, expand a folder. Expand a subfolder of that folder. Expand another subfolder still one level deeper.
2. Collapse the first folder
3. Expand the first folder again
Only the direct children of the first folder are shown.
All the levels that were expanded before the first folder was collapsed should be expanded again when that folder was re-expanded.
Thanks for the report!
The behaviour changed in KDE 4.8, when Dolphin replaced Qt's item views with its own view engine. This affects not only the Folders Panel, but also the Details View. It's certainly possible to fix this, but not in a straightforward way. Therefore, I'd like to see if there is a big demand to fix this before we think about how this could be implemented.
Resetting assignee to default as per bug #305719
*** Bug 306790 has been marked as a duplicate of this bug. ***
Git commit 07f0d125b212b926ce7d360d914aab304a6af96d by Frank Reininghaus.
Committed on 26/10/2013 at 07:36.
Pushed by freininghaus into branch 'master'.
Restore the tree state in Details View if a folder is re-expanded
This patch actually does two things when collapsing an expanded folder
with expanded children:
(a) It removes all expanded children (which are removed from the model)
(b) It remembers the expanded children and restores them if the
top-level folder is re-expanded.
M +15 -0 dolphin/src/kitemviews/kfileitemmodel.cpp