mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: update the key sequence widget when the applet global shortcut changes
for the case when it is stolen Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a2f589fc43
commit
98f6b2b434
1 changed files with 7 additions and 0 deletions
|
@ -1439,6 +1439,13 @@ void AppletPrivate::globalShortcutChanged()
|
|||
return;
|
||||
}
|
||||
|
||||
if (shortcutEditor) {
|
||||
// update the key sequence widget, the key sequence changes when it is stolen too
|
||||
shortcutEditor.data()->blockSignals(true);
|
||||
shortcutEditor.data()->setKeySequence(activationAction->globalShortcut());
|
||||
shortcutEditor.data()->blockSignals(false);
|
||||
}
|
||||
|
||||
KConfigGroup shortcutConfig(mainConfigGroup(), "Shortcuts");
|
||||
shortcutConfig.writeEntry("global", activationAction->globalShortcut().toString());
|
||||
scheduleModificationNotification();
|
||||
|
|
Loading…
Add table
Reference in a new issue