Summary: | Shift-click works like Ctrl-click after "Trash" operation | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Jin Liu <ad.liu.jin> |
Component: | view-engine: general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | akselmo, bugseforuns, kdedev, kfm-devel |
Priority: | NOR | ||
Version First Reported In: | 24.08.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/system/dolphin/-/commit/fd3f4e5fc1d7360004299a9d5ffa9b5571e7b1e9 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | screencast |
Can confirm the issue dolphin 24.11.70 Operating System: Fedora Linux 41 KDE Plasma Version: 6.2.80 KDE Frameworks Version: 6.8.0 Qt Version: 6.7.2 Kernel Version: 6.11.5-300.fc41.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 15,5 GiB of RAM Graphics Processor: AMD Radeon RX 6600 A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/859 Git commit fd3f4e5fc1d7360004299a9d5ffa9b5571e7b1e9 by Akseli Lahtinen. Committed on 21/11/2024 at 12:42. Pushed by akselmo into branch 'master'. DolphinView: beginAnchoredSelection after setSelected in selectNextItem Currently when next item is set selected, it's not set as an anchor. This means that shift-click will not select items between the selection and the next item, and instead behaves like ctrl-click. This is rather inconsistent behavior. We should set the next selected item as an anchor so that shift-click will work: This change starts the `beginAnchoredSelection` process after `setSelection`. For example, if user trashes an item and the next item is selected, shift-click would stop working. M +1 -0 src/views/dolphinview.cpp https://invent.kde.org/system/dolphin/-/commit/fd3f4e5fc1d7360004299a9d5ffa9b5571e7b1e9 *** Bug 484766 has been marked as a duplicate of this bug. *** |
Created attachment 175248 [details] screencast STEPS TO REPRODUCE 1. Create 5 files named 1, 2, 3, 4, 5. 2. Click to select 1. 3. Press DEL to trash 1. 4. Now 2 is selected automatically. 5. Shift-click on 5 OBSERVED RESULT 2 and 5 are selected. EXPECTED RESULT 2, 3, 4, 5 are selected SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.2.2 KDE Frameworks Version: 6.7.0 Qt Version: 6.8.0 Kernel Version: 6.11.5-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics Memory: 15.0 GiB of RAM Graphics Processor: AMD Radeon Graphics