Disable the "Create Folder..." action (triggered by F10) in read-only directories

Review Request #114560 - Created Dec. 20, 2013 and submitted

Information
Frank Reininghaus
kde-baseapps
KDE/4.12
294054
Reviewers
dolphin
Pressing F10 in a read-only directory and then clicking "OK" in the "Create new folder" dialog will trigger an error message because it is not possible to create a new folder.

To fix this, one can keep a pointer to the action in DolphinViewActionHandler, connect that class to the view's writeStateChanged(bool) signal, and update the action when this signal is received.
Fixes the problem for me.
Emmanuel Pescosta
Frank Reininghaus
Emmanuel Pescosta
Commit Hook
This review has been submitted with commit 67bb99c5ded73f9f25882a1e0c3035aa3b3a3f24 by Frank Reininghaus to branch KDE/4.12.
Frank Reininghaus
Review request changed

Status: Closed (submitted)

Loading...