From 98f6b2b434c4544f9fd7a1f81a35a33fd0549f1e Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 27 Apr 2024 04:18:19 +0300 Subject: [PATCH] plasma: update the key sequence widget when the applet global shortcut changes for the case when it is stolen Signed-off-by: Ivailo Monev --- plasma/applet.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plasma/applet.cpp b/plasma/applet.cpp index 56e685ef..bc154324 100644 --- a/plasma/applet.cpp +++ b/plasma/applet.cpp @@ -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();