Bug 451948 - [foldermodel]selection changed from rectangle to square when dragging a file with multi-line filename for the second time
Summary: [foldermodel]selection changed from rectangle to square when dragging a file ...
Status: RESOLVED DUPLICATE of bug 396397
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 5.24.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-27 05:34 UTC by margueritesu
Modified: 2022-03-28 07:41 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
video (627.96 KB, image/gif)
2022-03-27 05:34 UTC, margueritesu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description margueritesu 2022-03-27 05:34:42 UTC
Created attachment 147757 [details]
video

SUMMARY
[I recorded a git so you can see what happend.]

I have a file with multi-line filename. in folder model, when I drag it for the first time, nothing happens
the selection is a rectangle whose height longer than width because of the multi-line filename.

But if I drag it for the second time, the selection changes to a square,  so the font in the filename is flattened.
the selection will remain square shape no matter how many time you drag the file then.

Until you drag another file with one-line filename. then drag the multi-line file, the selection changes to rectangle again.

STEPS TO REPRODUCE
1.  change to folder model. create two files, one has one-line filename, another has multi-line filename.
2. drag the multi-line filename file twice. for the first time, the selection is rectangle; for the second time, the selection changes to a square. no matter how many times you drag the multi-line filename file, the square selection remains
3. now drag the one-line filename file once.
4. drag the multi-line filename file, the rectangle selection comes back.
5. drag the multi-line filename file again, the rectangle disappears and the square selection turns out again.

EXPECTED RESULT
the selection is always rectangle shape for the multi-line filename file.

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma:  openSUSE Tumbleweed, Plasma 5.24.3
KDE Plasma Version: Plasma 5.24.3
KDE Frameworks Version:  5.92.0
Qt Version: 5.15.2
Comment 1 Derek Christ 2022-03-28 07:41:41 UTC

*** This bug has been marked as a duplicate of bug 396397 ***