Gui: do not drop unhandled key events in *SpinBox::keyPressedEvent() handlers

This commit is contained in:
Thomas Gimpel
2020-07-11 20:01:46 +02:00
committed by wwmayer
parent 85846b7e58
commit 0ba7dcd0f6
2 changed files with 7 additions and 13 deletions

View File

@@ -513,7 +513,7 @@ void Gui::QuantitySpinBox::keyPressEvent(QKeyEvent *event)
{
if (event->text() == QString::fromUtf8("=") && isBound())
openFormulaDialog();
else if (!hasExpression())
else
QAbstractSpinBox::keyPressEvent(event);
}