Bug 194461

Summary: The "Undo Trash" action is still active after clearing the trash can
Product: [Unmaintained] kio Reporter: Ricardo <thrawnkb>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: andresbajotierra, frank78ac, nate
Priority: NOR    
Version First Reported In: 4.10.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ricardo 2009-05-28 20:29:12 UTC
Version:            (using KDE 4.2.3)
Installed from:    SuSE RPMs

I delete a file within dolphin, then i empty the trashcan (context menu of the plasmoid)
Then problem is that dolphin does not know that the trash was emptied, and it still shows the Undo action to restore the file. If you press it, a Moving plasma dialog appears, that tries to move the file from the trash to the appropiate location. As this file does not exists, the dialog stays there forever

Solutions: - make dolphin aware of the empty trash
           - Make the moving thread stop if the file in trash is not found, and hide the dialog as appropiate (I know this might be plasma related, but I put it in dolphin as the best fix IMHO is the first one)
Comment 1 Dario Andres 2009-05-29 15:47:44 UTC
IIRC the Plasma moving dialog (of a non-valid file) thing is fixed on KDE4.3.
About the other issue, I wonder if it could be related to bug 167388. (same root cause?)
Thanks
Comment 2 Ricardo 2009-05-29 18:32:43 UTC
Great about the moving dialog.
About the other, I think they are unrelated (but not sure), my issue happens the first time i empty the trash, and the other issue is about the second (and third...) times. So this issue seems to be about updating the Undo actions when the notification from the trash is received, and the other seems to be related to clear the state between notifications from the trash
Comment 3 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:18:33 UTC
Resetting assignee to default as per bug #305719
Comment 4 Frank Reininghaus 2013-05-02 11:07:13 UTC
This is not a Dolphin bug. KIO::FileUndoManager tells us about the available "Undo" actions, so I guess that this class needs some new API to be used by kio_trash or KonqOperations when the trash is cleared.
Comment 5 Nate Graham 2018-04-25 21:26:28 UTC
Works for me in KDE Frameworks 5.45.