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:
hjk
2023-10-10 10:29:11 +02:00
parent 8ca6890814
commit c90a6df6ef

View File

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