Utils: Fix BoolAspect::action

Change-Id: I6c82dfd5ec15eae16091e4ab52b552b636fbcca6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-07-20 13:09:30 +02:00
parent ddbfdb6f3f
commit 4c5e3aa6ba

View File

@@ -1529,7 +1529,9 @@ QAction *BoolAspect::action()
act->setChecked(m_internal);
act->setToolTip(toolTip());
connect(act, &QAction::triggered, this, [this](bool newValue) {
setValue(newValue);
setVolatileValue(newValue);
if (isAutoApply())
apply();
});
return act;
}