From d72f4ed468d3bb625296315ca42e396e37f1c5fa Mon Sep 17 00:00:00 2001 From: Techjar Date: Thu, 23 Aug 2018 06:48:15 -0400 Subject: [PATCH] Qt/AdvancedPane: Block signals during Update() --- Source/Core/DolphinQt/Settings/AdvancedPane.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp index 1e9ceeec87..fa041f468b 100644 --- a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp +++ b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -138,8 +139,11 @@ void AdvancedPane::Update() m_cpu_clock_override_slider->setEnabled(enable_cpu_clock_override_widgets); m_cpu_clock_override_slider_label->setEnabled(enable_cpu_clock_override_widgets); - m_cpu_clock_override_slider->setValue( - static_cast(std::round(std::log2f(SConfig::GetInstance().m_OCFactor) * 25.f + 100.f))); + { + const QSignalBlocker blocker(m_cpu_clock_override_slider); + m_cpu_clock_override_slider->setValue( + static_cast(std::round(std::log2f(SConfig::GetInstance().m_OCFactor) * 25.f + 100.f))); + } m_cpu_clock_override_slider_label->setText([] { int core_clock = SystemTimers::GetTicksPerSecond() / std::pow(10, 6);