Bug 194461 - The "Undo Trash" action is still active after clearing the trash can
Summary: The "Undo Trash" action is still active after clearing the trash can
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 4.10.2
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 20:29 UTC by Ricardo
Modified: 2018-04-25 21:26 UTC (History)
3 users (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 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.