Bug 484766

Summary: After deleting a file, cannot select contiguous items with shift+click
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: 1293660441, kfm-devel
Priority: NOR Keywords: qt6, regression
Version: 24.02.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2024-03-30 16:52:30 UTC
STEPS TO REPRODUCE      
1. have a folder containing 4 files. Let's call them...
file1
file2
file3
file4
2. make sure the files are sorted by name
3. select file1 and press delete key - after this step, file2 is selected
4. hold shift key and select file4

OBSERVED RESULT
only file2 and file4 are selected

EXPECTED RESULT
all files in the folder are selected

Operating System: Arch Linux 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 1 Huanyu Liu 2024-10-14 15:04:04 UTC
Here is another set of steps to trigger a similar bug:
1. Make sure Ark is installed
2. Have a folder containing the 4 files "file1", "file2", "file3", "file4"
3. Make sure the files are sorted by name
4. Right-click on "file1", "Compress → Compress to \"file1.zip\""; after this step, "file1.zip" should be selected automatically
5. Hold Shift key and select "file4"

Only "file1.zip" and "file4" are selected.

If you hold Shift key and select "file2", you will find all files between "file2" and "file4" are selected. In other words, although "file1.zip" is selected automatically after compressing, it is not recognized as the starting point of Shift+Selection; only the manually selected "file4.zip" will be treated as the starting point.

System information:
Operating System: Arch Linux 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.3-arch1-1 (64-bit)
Graphics Platform: Wayland