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 299368b1b2
commit ef6e5d175a

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 {