Bug 508624

Summary: After deleting an item, the next or the previous item is selected.
Product: [Applications] dolphin Reporter: David Shen <davidshen84>
Component: Selection ModeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: felixernst
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Shen 2025-08-23 01:58:42 UTC
SUMMARY

After deleting an item, the next or the previous item is selected.

STEPS TO REPRODUCE
1.  Open Dolphin
2.  Select an item and press the Delete key
3.  Observe the selected item after the deletion

OBSERVED RESULT

The following item or the previous item, in case the following item is not available, is selected.

EXPECTED RESULT

No item should be selected, so pressing the Delete key again won't accidentally delete another item.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version:  6.3.6
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Felix Ernst 2025-08-26 12:51:57 UTC
This was an intentional change to fix the bugs https://bugs.kde.org/show_bug.cgi?id=419914 and https://bugs.kde.org/show_bug.cgi?id=181214 (which has three duplicates).

>No item should be selected, so pressing the Delete key again won't accidentally delete another item.

I agree that this can be problematic. The plan is to have better feedback on deletion (for example through a notification) and have a deletion history. Another change that is currently being worked on is allowing to "Undo" such deletions directly from Dolphin.