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

Kai Uwe Broulik noreply at phabricator.kde.org
Tue Mar 7 09:22:23 UTC 2017


broulik added a comment.


  Taking for example the context menu code in FolderView:
  It does `KFileItem = m_dirModel->itemForIndex(index);`
  
  `item.localPath()`: `""`
  `item.isLocalFile()`: `false`
  `item.mostLocalUrl()`: `QUrl("desktop:/foo")`
  `item.targetUrl():` `QUrl("desktop:/foo")`
  `item.entry().stringValue(KIO::UDSEntry::UDS_LOCAL_PATH)`: `""`
  
  If you right click an item in desktop:/ the "Move to Trash" option will not be available, both in FolderView and Dolphin because it doesn't consider it a local file.

REPOSITORY
  R120 Plasma Workspace

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

To: broulik, #plasma, hein, dfaure
Cc: anthonyfieroni, 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/20170307/12f7e971/attachment.html>


More information about the Plasma-devel mailing list