Utils: Fix updating BoolAspect::action() checked state

Task-number: QTCREATORBUG-29949
Change-Id: I1c12bd59855ecf13f06fdb16bf8e0937768527b1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-11-14 13:30:13 +01:00
parent 41ac635ca6
commit 1079204a3e

View File

@@ -1838,6 +1838,8 @@ QAction *BoolAspect::action()
connect(act, &QAction::triggered, this, [this](bool newValue) { connect(act, &QAction::triggered, this, [this](bool newValue) {
setValue(newValue); setValue(newValue);
}); });
connect(this, &BoolAspect::changed, act, [act, this] { act->setChecked(m_internal); });
return act; return act;
} }