SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. Open Kate. Type 'a' 2. Delete 'a' 3. Click [x] OBSERVED RESULT It prompts to save the empty 'Untitled' file. EXPECTED RESULT Don't prompt. The file is empty, and was not already saved. If I really wanted to save an empty file, I would click 'Save' SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION Thank you for reading this far!
Adding a 100 USD bug bounty for a fix for this
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1185
Git commit ec15c64e557b3e7c7629eed60b9f8ba41daf48f3 by Christoph Cullmann, on behalf of Waqar Ahmed. Committed on 06/04/2023 at 18:27. Pushed by waqar into branch 'master'. Fix asking to save untitled empty doc on close Remove all docs for which queryClose == true M +9 -0 apps/lib/katemainwindow.cpp https://invent.kde.org/utilities/kate/commit/ec15c64e557b3e7c7629eed60b9f8ba41daf48f3
Git commit 99b98212e4d00ce75015e535ea5ea3cc4e227366 by Waqar Ahmed. Committed on 08/04/2023 at 10:36. Pushed by waqar into branch 'release/23.04'. Fix asking to save untitled empty doc on close Remove all docs for which queryClose == true (cherry picked from commit ec15c64e557b3e7c7629eed60b9f8ba41daf48f3) M +9 -0 apps/lib/katemainwindow.cpp https://invent.kde.org/utilities/kate/commit/99b98212e4d00ce75015e535ea5ea3cc4e227366
(In reply to Waqar Ahmed from comment #4) > Git commit 99b98212e4d00ce75015e535ea5ea3cc4e227366 by Waqar Ahmed. > Committed on 08/04/2023 at 10:36. > Pushed by waqar into branch 'release/23.04'. > > Fix asking to save untitled empty doc on close > > Remove all docs for which queryClose == true > (cherry picked from commit ec15c64e557b3e7c7629eed60b9f8ba41daf48f3) > > M +9 -0 apps/lib/katemainwindow.cpp > > https://invent.kde.org/utilities/kate/commit/ > 99b98212e4d00ce75015e535ea5ea3cc4e227366 Fantastic, many thanks Waqar