Bug 444738

Summary: Deleted session reappears after restart when "Save session when Krita closes" is enabled
Product: [Applications] krita Reporter: tomtomtomreportingin
Component: Resource ManagementAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: halla
Priority: NOR Keywords: regression
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tomtomtomreportingin 2021-10-31 20:06:28 UTC
krita-5.1.0-prealpha-e2a04dd

SUMMARY
Sessions that have been deleted through the session manager reappear after restarting Krita if "Save session when Krita closes" is enabled. This does not occur in Krita 4.

STEPS TO REPRODUCE
1. Open the session manager (through the File menu) and create two sessions, session1 and session2.
2. Delete session2.
3. Enable "Save session when Krita closes" in General -> Misc.
4. Restart Krita.

OBSERVED RESULT
session2 reappears.

EXPECTED RESULT
I'm not really sure what exactly should be expected behavior as I do not use this feature much, but at the very least session2 should stay deleted to conform with user wishes.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian sid
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.86.0
Qt Version: 5.12.11 (Appimage)

ADDITIONAL INFORMATION
Mostly unrelating to the bug report, Krita saves a new .XXXX version of the session file when using the session and having "Save session when Krita closes" enabled, which feels like a bit of an oversight....
Comment 1 tomtomtomreportingin 2022-08-23 15:17:59 UTC
Regression of 5.0.