From 50063f76abf2e4d3e20c9414ab61bae65335c7cb Mon Sep 17 00:00:00 2001 From: Jimi Huotari Date: Sun, 3 Oct 2021 01:23:29 +0300 Subject: [PATCH] fix(build): don't connect UpdateCheck when -DUPDATE_CHECK=OFF --- src/widget/form/settings/aboutform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widget/form/settings/aboutform.cpp b/src/widget/form/settings/aboutform.cpp index 2167ad5b0..88da475b0 100644 --- a/src/widget/form/settings/aboutform.cpp +++ b/src/widget/form/settings/aboutform.cpp @@ -63,7 +63,9 @@ AboutForm::AboutForm(UpdateCheck* updateCheck) bodyUI->setupUi(this); bodyUI->unstableVersion->setVisible(false); +#if UPDATE_CHECK_ENABLED connect(updateCheck, &UpdateCheck::versionIsUnstable, this, &AboutForm::onUnstableVersion); +#endif // block all child signals during initialization const RecursiveSignalBlocker signalBlocker(this);