Set componentDisplayName for shortcut migration
Otherwise the binary name is used as display name, causing all kwin shortcuts to be registered under kwin-6.0-delete-desktop-switching-shortcuts
This commit is contained in:
parent
4045b3b389
commit
afa450b97a
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ int main(int argc, char **argv)
|
||||||
QAction action;
|
QAction action;
|
||||||
action.setObjectName(actionName);
|
action.setObjectName(actionName);
|
||||||
action.setProperty("componentName", QStringLiteral("kwin"));
|
action.setProperty("componentName", QStringLiteral("kwin"));
|
||||||
|
action.setProperty("componentDisplayName", QStringLiteral("KWin"));
|
||||||
KGlobalAccel::self()->setShortcut(&action, {QKeySequence()}, KGlobalAccel::NoAutoloading);
|
KGlobalAccel::self()->setShortcut(&action, {QKeySequence()}, KGlobalAccel::NoAutoloading);
|
||||||
KGlobalAccel::self()->removeAllShortcuts(&action);
|
KGlobalAccel::self()->removeAllShortcuts(&action);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue