https://bugs.kde.org/show_bug.cgi?id=391606

David Faure <fa...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
   Version Fixed In|                            |5.62
      Latest Commit|                            |https://commits.kde.org/kio
                   |                            |/994d9030d2e3f60764338a69e6
                   |                            |7270a5f1905fa8
         Resolution|---                         |FIXED

--- Comment #14 from David Faure <fa...@kde.org> ---
Git commit 994d9030d2e3f60764338a69e67270a5f1905fa8 by David Faure.
Committed on 07/09/2019 at 13:54.
Pushed by dfaure into branch 'master'.

[CopyJob] Use resolved URL in copyingDone so undo can rename back using local
file

Summary:
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.
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 ;)

Test Plan:
Extended kio_desktop's unittest:
http://www.davidfaure.fr/2019/test_trash_and_undo.diff
Did not test as user.

Reviewers: broulik, ngraham

Reviewed By: ngraham

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D23758

M  +3    -1    src/core/copyjob.cpp

https://commits.kde.org/kio/994d9030d2e3f60764338a69e67270a5f1905fa8

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to