From febfd65e599d80774017f5de86d2bec5693a6490 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sun, 21 Dec 2025 19:17:01 +0100 Subject: [PATCH] Gui: Ensure that QuantitySpiBox handles expression properly --- src/Gui/QuantitySpinBox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index 3396ca8cc3..3cec76ed7c 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -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; }