diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-01-13 02:12:40 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-01-13 02:12:40 +0100 |
commit | 3e81e2cb5b5d00c8f73c479cf9190131a3041f35 (patch) | |
tree | 0543ab6d715115aff8b5dfaed5b64c33d97c8f35 /application/setupwizard/AnalyticsWizardPage.cpp | |
parent | 858b490c74d4b560923b1b3896735d0a42c78991 (diff) | |
download | MultiMC-3e81e2cb5b5d00c8f73c479cf9190131a3041f35.tar MultiMC-3e81e2cb5b5d00c8f73c479cf9190131a3041f35.tar.gz MultiMC-3e81e2cb5b5d00c8f73c479cf9190131a3041f35.tar.lz MultiMC-3e81e2cb5b5d00c8f73c479cf9190131a3041f35.tar.xz MultiMC-3e81e2cb5b5d00c8f73c479cf9190131a3041f35.zip |
NOISSUE do not show the analytics wizard page without analytics in the build
Diffstat (limited to 'application/setupwizard/AnalyticsWizardPage.cpp')
-rw-r--r-- | application/setupwizard/AnalyticsWizardPage.cpp | 5 |
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()) |