]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinremoveaction.cpp
Merge branch 'master' of git.kde.org:dolphin
[dolphin.git] / src / dolphinremoveaction.cpp
index c91d74579d76a30c69a1654146ea676bc7eb8e01..10ab25112a7ecd2587de1bf89fcfa05c0722a625 100644 (file)
@@ -45,7 +45,7 @@ void DolphinRemoveAction::update()
     // Using setText(action->text()) does not apply the &-shortcut.
     // This is only done until the original action has been shown at least once. To
     // bypass this issue, the text and &-shortcut is applied manually.
-    if (qApp->keyboardModifiers() & Qt::ShiftModifier) {
+    if (qApp->queryKeyboardModifiers() & Qt::ShiftModifier) {
         m_action = m_collection ? m_collection->action(QStringLiteral("delete")) : 0;
         setText(i18nc("@action:inmenu", "&Delete"));
     } else {