SUMMARY When there is unsaved file w or w/o changes upon session switch, dialog's Cancel button does nothing. Session is switched. STEPS TO REPRODUCE 1. Open session. 2. Add new file, add changes to it for clarity, do not save. 3. Switch to another session (Session/All Sessions) OBSERVED RESULT Session is switched. EXPECTED RESULT Switching process is halted. SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20240403 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.113.0 Qt Version: 5.15.11 Kernel Version: 6.8.2-1-default (64-bit) Graphics Platform: X11 ADDITIONAL INFORMATION Does not apply to already saved file with changes. Maybe because there are 2 same consequent dialogs upon this case.
I can't confirm this on latest builds, I get a prompt asking me to save my changes. Can you please try a later version, either from your OS or via Flatpak?
- I did not tell there is no dialog but that Cancel button does not prevent session switch. - Nonetheless, I updated to version 23.08.4 and observed behavior: - Saved file w changes: 2 dialogs with promt showed - Unsaved file: 2 dialogs showed
Created attachment 169242 [details] 2 dialog for usaved changes in saved file
Created attachment 169243 [details] 2 dialogs for unsaved file
Fixed in master with https://invent.kde.org/utilities/kate/-/commit/75f83c07d5681d9254cc250701be76be2f4c09ca