From 011cc3f17fc6aeb85411f3a69a9122192db48002 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 28 Apr 2020 19:55:04 +0200 Subject: [PATCH] Gui: [skip ci] when clearing ambiguous shortcut also remove the entry from the user parameters --- src/Gui/DlgKeyboardImp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gui/DlgKeyboardImp.cpp b/src/Gui/DlgKeyboardImp.cpp index c30ed4aefa..7e28c6d245 100644 --- a/src/Gui/DlgKeyboardImp.cpp +++ b/src/Gui/DlgKeyboardImp.cpp @@ -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 {