From fdd585e44cc68c34caa0504cefd3a3ab745fa2cb Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Thu, 12 Jan 2023 22:29:42 +0100 Subject: [PATCH] kcms/tabbox: Fix Reset not disabling Apply Fix the code to get the actual saved shortcuts on KGlobalAccel when discerning if they have changed. Amends commit: 76ac4be31632b436ea78611f07490c352a88b192 --- src/kcms/tabbox/kwintabboxconfigform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kcms/tabbox/kwintabboxconfigform.cpp b/src/kcms/tabbox/kwintabboxconfigform.cpp index 7e0eaedd5b..190cd1203d 100644 --- a/src/kcms/tabbox/kwintabboxconfigform.cpp +++ b/src/kcms/tabbox/kwintabboxconfigform.cpp @@ -276,7 +276,7 @@ bool KWinTabBoxConfigForm::isShortcutsChanged() const for (const auto &widget : {ui->scAll, ui->scAllReverse, ui->scCurrent, ui->scCurrentReverse}) { const QString actionName = widget->property("shortcutAction").toString(); QAction *action = m_actionCollection->action(actionName); - const auto shortcuts = KGlobalAccel::self()->shortcut(action); + const auto shortcuts = KGlobalAccel::self()->globalShortcut(QStringLiteral("kwin"), actionName); const QKeySequence savedShortcut = shortcuts.isEmpty() ? QKeySequence() : shortcuts.first(); if (action->shortcut() != savedShortcut) {