From 3e81e2cb5b5d00c8f73c479cf9190131a3041f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 13 Jan 2017 02:12:40 +0100 Subject: NOISSUE do not show the analytics wizard page without analytics in the build --- application/setupwizard/AnalyticsWizardPage.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'application/setupwizard/AnalyticsWizardPage.cpp') 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 #include +#include 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()) -- cgit v1.2.3