Bug 393332

Summary: Switching tabs causes expanded folders to close
Product: [Applications] dolphin Reporter: Greg Lepore <greg>
Component: panels: foldersAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: bugseforuns, dhal.asitk, meven29
Priority: NOR    
Version First Reported In: 17.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Expanded folders being collapsed after return from second tab
Video showing folders in tabs closing

Description Greg Lepore 2018-04-20 11:05:49 UTC
Created attachment 112136 [details]
Expanded folders being collapsed after return from second tab

Steps to reproduce:

1. Open tab 1, expand several levels of folders and subfolders in folders panel
2. Switch to tab 2
3. Switch back to tab 1, several of the folders which had been expanded are closed

See attached video. Expanded levels in /crawl and crawl2 have been collapsed.
Comment 1 Patrick Silva 2018-04-22 19:25:25 UTC
I can confirm on Arch Linux, Dolphin 18.04.
Comment 2 Greg Lepore 2019-03-28 15:23:04 UTC
Still happening on Dolphin Version 18.12.3.
Comment 3 Méven Car 2020-04-25 06:55:18 UTC
We have a setting to solve this: Right click on an element of the folder panel, uncheck "Limit to Home Directory".

By default the folder panel tries to stay focused on home directory.

Does this solve your issue ?
Comment 4 Greg Lepore 2020-04-25 12:50:36 UTC
Original submitter here, I'm not sure what the Limit to Home Directory setting is supposed to do, but it does not fix the problem for me.

Attached is a video of the problem still occuring.

Operating System: KDE neon 5.18
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1
Kernel Version: 4.15.0-96-generic
OS Type: 64-bit
Processors: 8 × AMD FX(tm)-8350 Eight-Core Processor
Memory: 7.8 GiB of RAM
Comment 5 Greg Lepore 2020-04-25 12:51:06 UTC
Created attachment 127861 [details]
Video showing folders in tabs closing
Comment 6 Méven Car 2020-04-26 13:33:54 UTC
Original submitter here, I'm not sure what the Limit to Home Directory setting is supposed to do, but it does not fix the problem for me.

You need to disable it for your use case.
In your video you clearly have it enabled, when you clicked in tab with ~/Downloads/lib the setting make the folder view reset with its root based on ~.
Please confirm.
Comment 7 Greg Lepore 2020-04-26 14:12:19 UTC
I can confirm that disabling "Limit to Home Directory" corrects the problem of expanded folders being collapsed. 

Is that the desired behavior of that feature?
Comment 8 Méven Car 2020-04-26 16:50:09 UTC
> Is that the desired behavior of that feature?

Yes, as it stays, it tries to limit what the folder panel shows to $HOME.
When you are outside of HOME this is turned off, but once you return to $HOME the folder panel is reset to HOME as root, loosing its context.