summaryrefslogtreecommitdiffstats
path: root/application/setupwizard
diff options
context:
space:
mode:
Diffstat (limited to 'application/setupwizard')
-rw-r--r--application/setupwizard/AnalyticsWizardPage.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/application/setupwizard/AnalyticsWizardPage.cpp b/application/setupwizard/AnalyticsWizardPage.cpp
index 40fb0b88..ce0f5280 100644
--- a/application/setupwizard/AnalyticsWizardPage.cpp
+++ b/application/setupwizard/AnalyticsWizardPage.cpp
@@ -6,6 +6,7 @@
#include <QCheckBox>
#include <ganalytics.h>
+#include <BuildConfig.h>
AnalyticsWizardPage::AnalyticsWizardPage(QWidget *parent)
: BaseWizardPage(parent)
@@ -42,6 +43,10 @@ bool AnalyticsWizardPage::validatePage()
bool AnalyticsWizardPage::isRequired()
{
+ if(BuildConfig.ANALYTICS_ID.isEmpty())
+ {
+ return false;
+ }
auto settings = MMC->settings();
auto analytics = MMC->analytics();
if (!settings->get("Analytics").toBool())