NOISSUE do not show the analytics wizard page without analytics in the build

This commit is contained in:
Petr Mrázek 2017-01-13 02:12:40 +01:00
parent 858b490c74
commit 3e81e2cb5b

View File

@ -6,6 +6,7 @@
#include <QCheckBox> #include <QCheckBox>
#include <ganalytics.h> #include <ganalytics.h>
#include <BuildConfig.h>
AnalyticsWizardPage::AnalyticsWizardPage(QWidget *parent) AnalyticsWizardPage::AnalyticsWizardPage(QWidget *parent)
: BaseWizardPage(parent) : BaseWizardPage(parent)
@ -42,6 +43,10 @@ bool AnalyticsWizardPage::validatePage()
bool AnalyticsWizardPage::isRequired() bool AnalyticsWizardPage::isRequired()
{ {
if(BuildConfig.ANALYTICS_ID.isEmpty())
{
return false;
}
auto settings = MMC->settings(); auto settings = MMC->settings();
auto analytics = MMC->analytics(); auto analytics = MMC->analytics();
if (!settings->get("Analytics").toBool()) if (!settings->get("Analytics").toBool())