Utils: Disable a QTC_CHECK that legitimately can happen

Change-Id: I63770766796798a4394a031612762dd5b390ab6b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-03-02 17:07:58 +01:00
parent 50f93710b7
commit 46402f2712

View File

@@ -1238,7 +1238,11 @@ QAction *BoolAspect::action()
act->setCheckable(true); act->setCheckable(true);
act->setChecked(value()); act->setChecked(value());
connect(act, &QAction::triggered, this, [this](bool newValue) { connect(act, &QAction::triggered, this, [this](bool newValue) {
QTC_CHECK(isAutoApply()); // The check would be nice to have in simple conditions, but if we
// have an action that's used both on a settings page and as action
// in a menu like "Use FakeVim", isAutoApply() is false, and yet this
// here can trigger.
//QTC_CHECK(isAutoApply());
setValue(newValue); setValue(newValue);
}); });
return act; return act;