D4923: [desktop:/ KIO] Strip superfluous slashes and fixup local root url

Kai Uwe Broulik noreply at phabricator.kde.org
Fri Mar 3 15:24:05 UTC 2017


broulik created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  When dragging a file from one desktop:/ to another desktop:/ KIO wouldn't notice it's the same location as the source would be
  `file://home/foo/Desktop//bar`
  whereas the destination is
  `file://home/foo/Desktop/./bar`
  This patch strips those unneccessary intermediate steps.

TEST PLAN
  I was surprised that KIO/KFileItem/UDSEntry wasn't smarter here and this patch is probably wrong on many levels.. :)

REPOSITORY
  R120 Plasma Workspace

REVISION DETAIL
  https://phabricator.kde.org/D4923

AFFECTED FILES
  kioslave/desktop/kio_desktop.cpp

To: broulik, #plasma, hein, dfaure
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170303/c55ef9aa/attachment.html>


More information about the Plasma-devel mailing list