Bug 482545

Summary: Multiple "Close Document" dialogs when closing Kate
Product: [Applications] kate Reporter: Florine W. Dekker <florine>
Component: sessionsAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: waqar.17a
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Florine W. Dekker 2024-03-06 14:24:17 UTC
SUMMARY
If I close Kate while a single "Untitled" document exists, I get two dialogs asking me if I want to save changes.

STEPS TO REPRODUCE
Tested in a fresh install of Debian Testing. Default Kate settings.

1. Open Kate.
2. Select "New File". An empty tab "Untitled" opens.
3. Write something in the tab.
4. Exit Kate (e.g. "Ctrl + Q").
5. In the close confirmation dialog, press "Cancel".

OBSERVED RESULT
In step 4, a dialog with title "Close Document - Kate" and text "The document "Untitled" has been modified. Do you want to save your changes or discard them?" is shown. If you select "Cancel", the same dialog is shown again. If I select "Cancel" in the second dialog, Kate finally quits.

(The dialogs are actually not _completely_ identical. Only the second is resizable, and only the first has a newline between the two sentences.)

EXPECTED RESULT
The dialog should be shown only once.

SOFTWARE/OS VERSIONS
Linux Kernel: 6.6.15-amd64 (64-bit)
KDE Plasma: 5.27.10
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Graphics Platform: Wayland
Comment 1 Waqar Ahmed 2024-03-06 18:28:37 UTC

*** This bug has been marked as a duplicate of bug 469690 ***