forked from qt-creator/qt-creator
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:
@@ -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()); });
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user