Properly disable create_dir action

Review Request #129712 - Created Dec. 28, 2016 and submitted - Latest diff uploaded

Information
Elvis Angelaccio
dolphin
Applications/16.12
be9a087...
Reviewers
dolphin
emmanuelp

isFolderWritable is set in DolphinView::updateWritableState according to KFileItemListProperties::supportsWriting(). However, writing=true does not imply makedir=true, in an ioslave's .protocol file. An example is the trash protocol.

So we need to enable the create_dir action only if the protocol is actually able to create folders.

CCBUG: 332463

Go to Trash and press F10 with and without patch.

Note that the create_dir action is already disabled by KIO (you can check by showing the menubar and opening File -> Create New menu), yet it was still listening for shortcuts on the Dolphin side.

Loading...