Bug 415414

Summary: KWrite asks twice to cancel closing file deleted by another program
Product: [Applications] kate Reporter: Grósz Dániel <groszdanielpub>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: minor CC: cagdasalagoz, justin.zobel, postix
Priority: NOR    
Version First Reported In: 19.12.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: attempt to reproduce

Description Grósz Dániel 2019-12-20 22:41:43 UTC
STEPS TO REPRODUCE
1. Open a file in KWrite.
2. Modify it, without saving.
3. Delete the file on the disk.
4. Switch back to KWrite. It warns you that the file was deleted by another program, with the options "Close File", "Save As" and "Ignore".
5. Click "Close File".
6. In the dialog "Do you want to save your changes or discard them?", click "Cancel".

OBSERVED RESULT
The same "Do you want to save your changes or discard them?" dialog pops up again, and you have to click Cancel a second time. Then it doesn't happen again.

EXPECTED RESULT
It gets the message the first time.

SOFTWARE/OS VERSIONS
OS: openSUSE Tubleweed 20191216
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.1
Comment 1 postix 2020-03-15 16:06:18 UTC
Confirmed on 

Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1
Comment 2 Justin Zobel 2020-10-30 02:14:01 UTC
Still an issue on git master kwrite.
Comment 3 Cagdas ALAGOZ 2025-07-29 18:44:07 UTC
I can't reproduce this on KDE Neon with kwrite 25.11.70. It's an old bug so it might be fixed alongside something else. If no one can reproduce this I believe we can close this as WFM.
Comment 4 Cagdas ALAGOZ 2025-07-29 18:44:45 UTC
Created attachment 183639 [details]
attempt to reproduce
Comment 5 Grósz Dániel 2025-07-29 19:26:41 UTC
I can't reproduce it either. It may have been fixed when KWrite was rewritten to use Kate's codebase.
Comment 6 Bug Janitor Service 2025-08-13 03:46:13 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2025-08-28 03:47:46 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.