Bug 324024

Summary: Refreshing projects view collapses all folders except for current one
Product: [Applications] kate Reporter: Kai Uwe Broulik <kde>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ekigwana, michal.humpula
Priority: NOR    
Version First Reported In: 3.11.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kai Uwe Broulik 2013-08-25 19:16:25 UTC
When hitting the refresh button in the projects view (would be great to have Kate use a dir listener to auto-track file appearance/disappearance), the tree collapses all folders except for the one where the currently edited file is in.

Reproducible: Always

Steps to Reproduce:
1. Open a Kate project
2. Expand some folders
3. Hit Refresh button
Actual Results:  
All folders except for the one where the currently edited file is in

Expected Results:  
No folders are collapsed, only empty and/or removed folders get removed
Comment 1 Dominik Haumann 2015-10-07 11:55:01 UTC
Hi Kai, there once was a review request for it: https://git.reviewboard.kde.org/r/120488/
It was discarded, though, since the model merging is probably quite some nasty code...

Any good solution for that?
Comment 2 Edward Kigwana 2019-05-25 07:22:02 UTC
Bug not in master. Note that the view does have other issues just not this one. In fact I can't get deleted files to disappear for a git project.