Bug 503160

Summary: Dolphin should restore an item from Trash even if its original location no longer exists
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: dolphin-bugs-null, felixernst
Priority: NOR    
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2025-04-22 10:44:35 UTC
Created attachment 180519 [details]
screenshot

STEPS TO REPRODUCE
1. create a folder
2. copy a file to just created folder
3. send the file copied in the step 2 to Trash
4. send the folder created in the step 1 to Trash
5. open Trash
6. try to restore the file sent to Trash in the step 3

OBSERVED RESULT
the file is not restored and Dolphin shows the message seen in the attached screenshot

EXPECTED RESULT
Dolphin recreates the original location and restores the file, like Nautilus file manager

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Graphics Platform: Wayland
Comment 1 Felix Ernst 2025-04-22 11:18:42 UTC
>EXPECTED RESULT
>Dolphin recreates the original location and restores the file, like Nautilus file manager

I don't think that's a better default behaviour, but it would make sense if the user was asked if they want those directories to be recreated.