Bug 513704

Summary: Closing one window via the menu closes all KWrite instances, not only the current one
Product: [Applications] kate Reporter: Tobias Leupold <tl>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: tl, waqar.17a
Priority: NOR    
Version First Reported In: 25.08.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tobias Leupold 2025-12-22 15:09:23 UTC
Hi devs,

the title says it all: When multiple KWrite windows are open, one can close one by clicking on the X in the window title bar. However, if one uses the menu (either by clicking "File" → "Quit" or using the respective shortcut), all KWrite windows are closed, not only the current one.

I'll have a look in the code to see if I can fix it … otherwise, it would be really nice if this was patched (KWrite is my favorite non-integrated development environment ;-)

Thanks in advance for looking into this!

Cheers, Tobias
Comment 1 Waqar Ahmed 2025-12-22 17:06:36 UTC
This is working as designed atm. File -> Quit means quitting the application.
Comment 2 Tobias Leupold 2025-12-22 17:30:29 UTC
But this way, there's no way to close a single instance of KWrite through a keyboard shortcut. IMHO this does not work as expected. Closing the application should close it and all tabs it contains – but as soon as I don't open documents in tabs, but in a own instance, closing should behave like clicking the X, and only close that very instance.
Comment 3 Waqar Ahmed 2025-12-22 18:40:23 UTC
There is "Close Window" action. Ctrl+Shift+W

It does work as expected. Our expectations are different though. Pretty much the whole KDE uses Ctrl+Q to quit application so its unlikely this will change
Comment 4 Tobias Leupold 2025-12-22 18:50:06 UTC
Fair enough, one can actually use Ctrl+Shift+W to close a single window. I think this is a bit unintuitive, but as this is a design decision, I think we can close this. Thanks anyway for your time :-)