]> cloud.milkyroute.net Git - dolphin.git/commit
Properly disable create_dir action in Trash
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Mon, 2 Jan 2017 13:52:37 +0000 (14:52 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Mon, 2 Jan 2017 13:54:38 +0000 (14:54 +0100)
commit24ed38d77f4bc6db71ba2608452fa0cd401bddac
tree2089813fb91bad493aa56895a668ef8a93a5febf
parentc456c5d528f470ce782a90646eae52951c0f31b9
Properly disable create_dir action in Trash

`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
REVIEW: 129712
src/views/dolphinviewactionhandler.cpp