Bug 467287

Summary: Deleting many files takes scroll focus to wrong end
Product: [Applications] dolphin Reporter: David <david.cortes.rivera>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David 2023-03-13 17:12:02 UTC
SUMMARY
If I select many files in Dolphin in a way that moves the position within the scrolling bar downwards and then delete the files, it will not take me back to the scrolling part where my selection had started - instead, it will keep the same position, but as I deleted many files, this is now far apart from the beginning of  the selection.

STEPS TO REPRODUCE
1. Create a folder with lots of files.
2. Launch Dolphin.
3. Configure Dolphin to group files by type (not sure if this is entirely required) and show icons.
4. Position somewhere in the middle of the available scrolling on the right panel.
5. Start a selection rectangle by holding a mouse click and moving it downwards.
6. Let it select many files, taking the scrolling position below what it was before.
7. Delete the files with Shift+Del.

OBSERVED RESULT
Puts the focus on what would have been the end of the selection rectangle. As the files no longer exist, this means that it skipped a lot of files to show to me, since unseen files moved ahead of my current view.

EXPECTED RESULT
Should bring back the focus to where the selection rectangle began, like in windows explorer.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-6-amd64 (64-bit)
Graphics Platform: X11
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: SLIMBOOK
Product Name: Executive

ADDITIONAL INFORMATION