┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinremoveaction.cpp
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2013-06-22 14:04:45 +0200
committerEmmanuel Pescosta <[email protected]>2013-06-22 14:04:45 +0200
commita18550fb768a5ea27231e52206f10bd31d28237a (patch)
tree14da70210fcbf17cb552b26216c5beb8769acda6 /src/dolphinremoveaction.cpp
parent5a647117abf1fd6ab7ef26cfa3f54aee96f27fce (diff)
Update the "Move to Trash" action's and the "Delete" action's
enabled state in the context menu for read only files/folders (also archives). BUG: 294013 FIXED-IN: 4.11 REVIEW: 111160
Diffstat (limited to 'src/dolphinremoveaction.cpp')
-rw-r--r--src/dolphinremoveaction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinremoveaction.cpp b/src/dolphinremoveaction.cpp
index 200fc407d..7d7c2f043 100644
--- a/src/dolphinremoveaction.cpp
+++ b/src/dolphinremoveaction.cpp
@@ -53,8 +53,9 @@ void DolphinRemoveAction::update()
setText(i18nc("@action:inmenu", "&Move to Trash"));
}
- if (m_action) {
+ if (m_action) {
setIcon(m_action->icon());
setShortcuts(m_action->shortcuts());
+ setEnabled(m_action->isEnabled());
}
}