In case of desktop:/ KIO which rewrites URLs, looking up the URL the trashed file got didn't work.
This resulted in trash:/filename being recorded by the undo manager which then
failed to restore the file as it was actually trashed to e.g. trash:/0-filename.
In addition, the source URL must be resolved too, since kio_trash
doesn't support renaming from trash to desktop URLs.
BUG: 391606
FIXED-IN: 5.62
CHANGELOG: Undoing trashing files on the desktop has been fixed
Thanks: to Kai-Uwe for the debugging and the initial patch; to Nate for pinging me a few times for this to happen ;)