From cb4a0b1dd08a5a95d1cce19f7c4ebcbf197cb876 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Thu, 26 Aug 2021 09:05:10 -0500 Subject: [PATCH] Also set tooltip after Reset and ResetAll --- src/Gui/DlgKeyboardImp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Gui/DlgKeyboardImp.cpp b/src/Gui/DlgKeyboardImp.cpp index c589de8bee..44e1c47af9 100644 --- a/src/Gui/DlgKeyboardImp.cpp +++ b/src/Gui/DlgKeyboardImp.cpp @@ -286,6 +286,9 @@ void DlgCustomKeyboardImp::on_buttonReset_clicked() ui->accelLineEditShortcut->setText((txt.isEmpty() ? tr("none") : txt)); ParameterGrp::handle hGrp = WindowParameter::getDefaultParameter()->GetGroup("Shortcut"); hGrp->RemoveASCII(name.constData()); + + // update the tool tip (and status tip) + cmd->recreateTooltip(cmd->className(), cmd->getAction()); } ui->buttonReset->setEnabled( false ); @@ -300,6 +303,10 @@ void DlgCustomKeyboardImp::on_buttonResetAll_clicked() if ((*it)->getAction()) { (*it)->getAction()->setShortcut(QKeySequence(QString::fromLatin1((*it)->getAccel())) .toString(QKeySequence::NativeText)); + + + // update the tool tip (and status tip) + (*it)->recreateTooltip((*it)->className(), (*it)->getAction()); } }