Bug 459914

Summary: New Synchronised Window confuses tab contents
Product: [Applications] kate Reporter: K.J. Petrie <kde.bugs>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: christoph
Priority: NOR    
Version First Reported In: 22.08.1   
Target Milestone: ---   
Platform: PCLinuxOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description K.J. Petrie 2022-10-02 12:17:33 UTC
When opening a New Synchronised Window with more tabs open than can be displayed Kwrite confuses file contents so the wrong file name is displayed in the tab.

STEPS TO REPRODUCE
1.  Set number of tabs to 1
2.  Open a document
3. Open a second document
4. Open a New Synchronised Window

OBSERVED RESULT
The new window opens, displaying the contents of one document with the file name of the other in the tab.

EXPECTED RESULT
The new window would display the same contents and file name as the original.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  5.25.5
(available in About System)
KDE Plasma Version:  5.25.5
KDE Frameworks Version: 5.98.0
Qt Version:  5.15.6

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2022-10-02 17:40:02 UTC
This is altered in master, there is now just 'new window' and that one will always open with just either a startup page or a single new untitled document.