Bug 458195

Summary: Document switcher layout is broken
Product: [Applications] kate Reporter: popov895 <popov895>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: christoph, popov895, waqar.17a
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Document Swicther

Description popov895 2022-08-23 08:28:16 UTC
Created attachment 151515 [details]
Document Swicther

SUMMARY

The layout in the Document Switcher plugin is broken.

SOFTWARE/OS VERSIONS

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5
Graphics Platform: X11
Comment 1 Christoph Cullmann 2022-08-23 09:21:06 UTC
Yes, seems an issue if all documents are untitled, not sure why.
Comment 2 Christoph Cullmann 2022-08-23 19:01:11 UTC
Hmm, at work I could reproduce, on X11, at home with Wayland this seems to work properly.
Comment 3 Waqar Ahmed 2022-08-25 19:54:49 UTC
Interestingly, the popup doesn't even have a parent widget.
Comment 4 Dominik Haumann 2022-08-26 08:25:51 UTC
The reason is simple: The 0th column contains the path of the files. Since there are only untitled documents, there are only empty paths, i.e. of length = 0 chars. The 0th column is still visible, likely with a minimum width.

The possible fix is: When showing the tab switcher, first check whether there is an entry with a valid path. If not, hide column 0. Then this should be fixed.
Comment 5 Christoph Cullmann 2022-08-26 08:54:59 UTC
Hmm, funny enough, for me this works on X11 and Wayland even with that.
Comment 6 popov895 2022-08-27 09:14:06 UTC
I can no longer reproduce this bug.