Gui: [skip ci] when clearing ambiguous shortcut also remove the entry from the user parameters

This commit is contained in:
wmayer
2020-04-28 19:55:04 +02:00
parent 6d05e156fc
commit 011cc3f17f

View File

@@ -418,6 +418,9 @@ void DlgCustomKeyboardImp::on_editShortcut_textChanged(const QString& sc)
for (auto* cmd : ambiguousCommands) {
Action* action = cmd->getAction();
action->setShortcut(QString());
ParameterGrp::handle hGrp = WindowParameter::getDefaultParameter()->GetGroup("Shortcut");
hGrp->RemoveASCII(cmd->getName());
}
}
else {