Bug 498972

Summary: KWrite opens multiple new file windows when a new instance is started, opening files in windows instead of tabs has been chosen, and multiple other files are already open
Product: [Applications] kate Reporter: Tobias Leupold <tl>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: john.kizer
Priority: NOR    
Version First Reported In: 24.08.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tobias Leupold 2025-01-21 17:21:32 UTC
SUMMARY

Under certain conditions, when you start KWrite, multiple windows are opened instead of only one. I think this is not a regression of 24.08.3 specifically, IIRC this behavior existed since "Kate ate KWrite" back then.

STEPS TO REPRODUCE
1. Have KWrite configured to open multiple windows instead of tabs.
2. Start KWrite. Open some file.
3. Via "File" → "Open", open another file to be opened in another window.
4. Start another KWrite instance to get a new empty window.

OBSERVED RESULT

Two new empty KWrite windows are opened.

EXPECTED RESULT

Only one new empty KWrite window should be opened.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.1
Comment 1 John Kizer 2025-01-23 07:45:20 UTC
Hi - thanks for your bug report! I can reproduce on KWrite 24.12.1, Fedora KDE 41.