Bug 518713 - Move "Empty Trash" away from the top option of the right click menu
Summary: Move "Empty Trash" away from the top option of the right click menu
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Trash (other bugs)
Version First Reported In: 6.24.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Antti Savolainen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-08 23:05 UTC by Antti Savolainen
Modified: 2026-04-18 09:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Savolainen 2026-04-08 23:05:43 UTC
SUMMARY
Demonstrative video: https://youtu.be/upneIwt8Nm8
Trash has a major problem UX wise. "Restore to former location" and "Empty trash" are both at the same spot in the right click menu. This is a problem because if the user wants to restore a file but clicks on a spot that doesn't activate it and then mindlessly click on where they expect the menu item to be, they will end up emptying the trash. It might be worth putting it as the complete bottom option since if the user wants to delete just one file, they might end up emptying the trash because both have the same icon and color

STEPS TO REPRODUCE
1. Open trash with two items
2. Click on one to activate it
3. Right click on the other on a spot that doesn't activate it

OBSERVED RESULT
Empty trash is where you expect Restore to former location to be

EXPECTED RESULT
Empty trash should not be where you expect something else to be.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.24.0
Qt Version: 6.11.0
Kernel Version: 6.19.11-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 2600 Six-Core Processor
Memory: 64 GiB of RAM (62.7 GiB usable)
Graphics Processor: AMD Radeon RX 5700
Comment 1 Bug Janitor Service 2026-04-17 06:44:30 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1245
Comment 2 Méven 2026-04-18 09:31:36 UTC
Git commit 7d81e3092a85b77d575d2519d97c578365080e0e by Méven Car, on behalf of Antti Savolainen.
Committed on 18/04/2026 at 09:31.
Pushed by meven into branch 'master'.

dolphincontextmenu: move "Empty Trash" to where you expect destructive actions to be

"Empty Trash" has caused me to delete files that I've wanted to restore. This moves the position to where you expect them to be. 

To my understanding the standard order in the context menu is:  
Creation operations  
Visual adjustments  
Destructive operations  
Misc.  
Settings  

| Before | After | Restore for comparison |
|-|-|-|
| ![image](/uploads/16e8bc66d3123be2f6ab598972d8be3c/image.png){width=185 height=144}| ![image](/uploads/fbcded1023c7133099b2dcddbd6c7bc3/image.png){width=225 height=161} | ![image](/uploads/8bdb39e0e21a9128204181d38acb0ed6/image.png){width=270 height=159} |

M  +12   -11   src/dolphincontextmenu.cpp

https://invent.kde.org/system/dolphin/-/commit/7d81e3092a85b77d575d2519d97c578365080e0e