Gui: Ensure that QuantitySpiBox handles expression properly
(cherry picked from commit febfd65e59)
This commit is contained in:
committed by
Max Wilfinger
parent
dbf87623b2
commit
01c42b34d9
@@ -453,6 +453,9 @@ void Gui::QuantitySpinBox::keyPressEvent(QKeyEvent* event)
|
||||
const auto isEnter = event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return;
|
||||
|
||||
if (d->normalize && isEnter && !isNormalized()) {
|
||||
// ensure that input is up to date
|
||||
handlePendingEmit();
|
||||
|
||||
normalize();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user