Bug 513704 - Closing one window via the menu closes all KWrite instances, not only the current one
Summary: Closing one window via the menu closes all KWrite instances, not only the cur...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: kwrite (other bugs)
Version First Reported In: 25.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-22 15:09 UTC by Tobias Leupold
Modified: 2025-12-22 18:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 :-)