From 4c30a62d40ab0ba3220d95b79840f289955d047c Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 26 Apr 2024 04:20:48 +0300 Subject: [PATCH] kdeui: set only the active shortcut when reading KActionCollection settings setting the default makes no sense, the default should come from code not from the config Signed-off-by: Ivailo Monev --- kdeui/actions/kactioncollection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdeui/actions/kactioncollection.cpp b/kdeui/actions/kactioncollection.cpp index c2813cdb..8528d5a4 100644 --- a/kdeui/actions/kactioncollection.cpp +++ b/kdeui/actions/kactioncollection.cpp @@ -391,7 +391,7 @@ void KActionCollection::readSettings(KConfigGroup *config) if (!entry.isEmpty()) { kaction->setShortcut(QKeySequence(entry), KAction::ActiveShortcut); } else { - kaction->setShortcut(kaction->shortcut(KAction::DefaultShortcut)); + kaction->setShortcut(kaction->shortcut(KAction::DefaultShortcut), KAction::ActiveShortcut); } }