Gui: [skip ci] fix bug when keyboard tracking for QuantitySpinBox is disabled and value is changed by mouse wheel or the spin buttons

This commit is contained in:
wmayer
2020-06-07 11:30:56 +02:00
parent f98b948866
commit 03113405fc

View File

@@ -792,6 +792,8 @@ void QuantitySpinBox::stepBy(int steps)
{
Q_D(QuantitySpinBox);
handlePendingEmit();
double step = d->singleStep * steps;
double val = d->unitValue + step;
if (val > d->maximum)
@@ -800,7 +802,6 @@ void QuantitySpinBox::stepBy(int steps)
val = d->minimum;
lineEdit()->setText(QString::fromUtf8("%L1 %2").arg(val).arg(d->unitStr));
handlePendingEmit();
update();
selectNumber();
}