Utils: Don't pass updates from IntegerAspect spinboxes through apply

The same pattern as used in DoubleAspect to avoids the asserts on autoapply
state in apply().

Change-Id: Ie06bac7fd8ec24ad461dc932c8eb85fa043a6fb7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-03-04 12:32:49 +01:00
parent 65215b01e8
commit 8cfc053c2d

View File

@@ -1571,7 +1571,7 @@ void IntegerAspect::addToLayout(LayoutBuilder &builder)
if (isAutoApply()) {
connect(d->m_spinBox.data(), QOverload<int>::of(&QSpinBox::valueChanged),
this, [this] { apply(); });
this, [this] { setValue(d->m_spinBox->value()); });
}
}