D23333: KDirOperator: Only enable "Create New" menu if the selected item is a directory
Daan De Meyer
noreply at phabricator.kde.org
Thu Aug 22 09:12:21 BST 2019
daandemeyer created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
daandemeyer requested review of this revision.
REVISION SUMMARY
Currently, when right-clicking a file in KDirOperator, the "Create New" menu is available and can be used. However, when creating any new directory or file, the operation fails since we're trying to create a directory or file under a file.
This patch modifies KDirOperator to only enable the "Create New" menu when the selected item is a directory.
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D23333
AFFECTED FILES
src/filewidgets/kdiroperator.cpp
To: daandemeyer
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190822/6d8f3e90/attachment.html>
More information about the Kde-frameworks-devel
mailing list