forked from qt-creator/qt-creator
Utils: Fix BoolAspect::action
Change-Id: I6c82dfd5ec15eae16091e4ab52b552b636fbcca6 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user