Bug 452360

Summary: Project location not remembered in the session
Product: [Applications] kate Reporter: Piotr Keplicz <keplicz>
Component: sessionsAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 21.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 22.04.0
Sentry Crash Report:

Description Piotr Keplicz 2022-04-07 11:44:19 UTC
SUMMARY

Currently open project (ie. git repo location) is not remembered in the session when all files have been closed and Kate has been closed. 

I'd like to use the session plugin with one session per project. After the last file is closed, the "Project" tab still displays the current project files and I can open another file to edit. However when no files are open and Kate is closed, the session doesn't store current project location and upon next startup and session restoration I need to switch to the "File browser" tab to select a file. When working with projects one usually shouldn't need to use both "Project" and "File browser" tabs since they're mostly redundant.

STEPS TO REPRODUCE
1. Open a a file in a project (git repo or whatever).
2. Enable "Project" tab, disable "File browser" tab.
3. Close the file.
4. "Project" tab is still open and allows to select another file.
5. Close Kate.

OBSERVED RESULT
Upon next startup:
1. No file is open (obviously).
2. The "Project" tab is collapsed, no project is selected.

EXPECTED RESULT
Upon next startup:
1. No file is open (obviously).
2. The "Project" tab is open (since it was open when Kate closed), the last project is selected.
	

SOFTWARE/OS VERSIONS
Kate Version: 21.12.3
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Comment 1 Christoph Cullmann 2022-04-07 18:18:24 UTC
this is fixed for 22.04
Comment 2 Piotr Keplicz 2022-04-07 18:36:23 UTC
Thanks :)