Gui: [skip ci] fix a small regression caused by PR #5232 (or commit 7d649fe55)

See also forum posting: https://forum.freecadweb.org/viewtopic.php?p=583303#p583303
This commit is contained in:
wmayer
2022-03-26 18:27:04 +01:00
parent 8befdb2459
commit cb4363330f

View File

@@ -778,8 +778,7 @@ void QuantitySpinBox::stepBy(int steps)
else if (val < d->minimum)
val = d->minimum;
Quantity quant(val, d->unitStr);
updateText(quant);
lineEdit()->setText(QString::fromUtf8("%L1 %2").arg(val).arg(d->unitStr));
updateFromCache(true);
update();
selectNumber();