From 22e1a3c09fb67a098e8bcfd072243aa1ba91e571 Mon Sep 17 00:00:00 2001 From: sephiroth99 Date: Fri, 23 Jun 2017 19:09:45 -0400 Subject: [PATCH] DolphinQt2: fix compile error with analytics disabled Some ifdefs were missed around two lines related to analytics in GeneralPane. --- Source/Core/DolphinQt2/Settings/GeneralPane.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/DolphinQt2/Settings/GeneralPane.cpp b/Source/Core/DolphinQt2/Settings/GeneralPane.cpp index 06862c8473..0c90b2ab01 100644 --- a/Source/Core/DolphinQt2/Settings/GeneralPane.cpp +++ b/Source/Core/DolphinQt2/Settings/GeneralPane.cpp @@ -142,7 +142,9 @@ void GeneralPane::LoadConfig() { auto& settings = Settings::Instance(); m_checkbox_force_ntsc->setChecked(settings.GetForceNTSCJ()); +#if defined(USE_ANALYTICS) && USE_ANALYTICS m_checkbox_enable_analytics->setChecked(settings.GetAnalyticsEnabled()); +#endif m_checkbox_dualcore->setChecked(SConfig::GetInstance().bCPUThread); m_checkbox_cheats->setChecked(SConfig::GetInstance().bEnableCheats); int selection = qRound(settings.GetEmulationSpeed() * 10); @@ -173,7 +175,9 @@ void GeneralPane::OnSaveConfig() { auto& settings = Settings::Instance(); settings.SetForceNTSCJ(m_checkbox_force_ntsc->isChecked()); +#if defined(USE_ANALYTICS) && USE_ANALYTICS settings.SetAnalyticsEnabled(m_checkbox_enable_analytics->isChecked()); +#endif SConfig::GetInstance().bCPUThread = m_checkbox_dualcore->isChecked(); SConfig::GetInstance().bEnableCheats = m_checkbox_cheats->isChecked(); SConfig::GetInstance().m_EmulationSpeed = m_combobox_speedlimit->currentIndex() * 0.1f;