Commit 52c5290b authored by David Edmundson's avatar David Edmundson Committed by Nate Graham
Browse files

[kcms/activities] Use correct method to set active global shortcut

We're not binding to the action so we don't want setGlobalShortcut. We
also need to not autoload in order to actually save anything.

BUG: 374575


(cherry picked from commit c5413826)

(cherry picked from commit 33fd3058)

(cherry picked from commit 395aba0f)
parent dec75f0d
......@@ -289,8 +289,7 @@ void Dialog::saveChanges(const QString &activityId)
action.setProperty("isConfigurationAction", true);
action.setProperty("componentName", QStringLiteral("ActivityManager"));
action.setObjectName(QStringLiteral("switch-to-activity-") + activityId);
KGlobalAccel::self()->removeAllShortcuts(&action);
KGlobalAccel::self()->setGlobalShortcut(&action, activityShortcut());
KGlobalAccel::self()->setShortcut(&action, {activityShortcut()}, KGlobalAccel::NoAutoloading);
// is private?
d->features->SetValue(QStringLiteral("org.kde.ActivityManager.Resources.Scoring/isOTR/")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment