summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorshuffle2 <godisgovernment@gmail.com>2017-06-23 16:41:01 -0700
committerGitHub <noreply@github.com>2017-06-23 16:41:01 -0700
commit5111fc6e527bc7a7a2cf8d6612abe5fe0e8482a7 (patch)
tree519d8062d1c8b0d689def115fd8459ce68d7b729 /Source/Core
parent485589f42dbac68fe45ff684e59cdc5daf3edfe2 (diff)
parent22e1a3c09fb67a098e8bcfd072243aa1ba91e571 (diff)
Merge pull request #5673 from sephiroth99/qt2analytics
DolphinQt2: fix compile error with analytics disabled
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt2/Settings/GeneralPane.cpp4
1 files changed, 4 insertions, 0 deletions
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;