D14610: Use KLineEdit for folder name if folder has write access, else use QLabel

David Faure noreply at phabricator.kde.org
Sun Aug 5 21:47:08 BST 2018


dfaure added a comment.


  `KFilePropsPlugin::setFileNameReadOnly` checks for m_bFromTemplate for the case where the properties dialog is used by the "Create New / ..." context menu action.
  In that case, the source file (the template from /usr) isn't movable, but we still want to let the user type a filename -- for the copied file.
  
  Doing this inside that method won't work anymore, we need to incorporate it into the new if() for using the label. For instance like this:
  
  `if (d->bMultiple || isTrash || hasRoot || (!m_bFromTemplate && !itemList.supportsMoving()))`

REPOSITORY
  R241 KIO

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

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


More information about the Kde-frameworks-devel mailing list