forked from qt-creator/qt-creator
Revert "Utils: Fix BoolAspect::action"
This reverts commit 4c5e3aa6ba.
Not needed anymore. The action likely ends up in a menu or such
where it is effectively 'autoapply'.
Change-Id: Ib02cba871028fa1422e10622d263218089226c56
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -1831,9 +1831,7 @@ QAction *BoolAspect::action()
|
|||||||
act->setChecked(m_internal);
|
act->setChecked(m_internal);
|
||||||
act->setToolTip(toolTip());
|
act->setToolTip(toolTip());
|
||||||
connect(act, &QAction::triggered, this, [this](bool newValue) {
|
connect(act, &QAction::triggered, this, [this](bool newValue) {
|
||||||
setVolatileValue(newValue);
|
setValue(newValue);
|
||||||
if (isAutoApply())
|
|
||||||
apply();
|
|
||||||
});
|
});
|
||||||
return act;
|
return act;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user