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: 76ac4be316
This commit is contained in:
parent
c9691b5855
commit
fdd585e44c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue