D14360: Remove custom icon selection for trash

Kai Uwe Broulik noreply at phabricator.kde.org
Wed Jul 25 11:38:05 BST 2018


broulik added a comment.


  Thanks a lot for your patch!
  
  I think it is cleaner if the button is setup but then hidden:
  
    m_iconButton->setVisible(url.toString() != QLatin1String("trash:/"));
  
  Curiously, Dolphin overwrites the icon whenever `url.protocol() == "trash` whereas `KFilePlacesModel` only does it for `url.toString() == "trash:/"`. However you cannot actually add files inside Trash to Places in Dolphin (and why would you, you can from file dialog, though, but that is a bug) anyway.
  So perhaps can be simplified even to:
  
    m_iconButton->setVisible(url.scheme() != QLatin1String("trash"));

REPOSITORY
  R241 KIO

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

To: shubham, ngraham, broulik
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180725/e7b89142/attachment.html>


More information about the Kde-frameworks-devel mailing list