forked from qt-creator/qt-creator
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:
@@ -1838,6 +1838,8 @@ QAction *BoolAspect::action()
|
||||
connect(act, &QAction::triggered, this, [this](bool newValue) {
|
||||
setValue(newValue);
|
||||
});
|
||||
connect(this, &BoolAspect::changed, act, [act, this] { act->setChecked(m_internal); });
|
||||
|
||||
return act;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user