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 <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-26 04:20:48 +03:00
parent b64a94ac19
commit 4c30a62d40

View file

@ -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);
}
}