From a83bf8bc59ee56bc7b6574c749961fd115004143 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 12 Sep 2020 17:06:17 -0500 Subject: DolphinQt: properly remove slot connection for ConfigChange when object is destructed --- Source/Core/DolphinQt/Config/Graphics/GraphicsChoice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinQt/Config/Graphics/GraphicsChoice.cpp') diff --git a/Source/Core/DolphinQt/Config/Graphics/GraphicsChoice.cpp b/Source/Core/DolphinQt/Config/Graphics/GraphicsChoice.cpp index 923921ab15..5dab43fb71 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GraphicsChoice.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GraphicsChoice.cpp @@ -17,7 +17,7 @@ GraphicsChoice::GraphicsChoice(const QStringList& options, const Config::Info(&QComboBox::currentIndexChanged), this, &GraphicsChoice::Update); setCurrentIndex(Config::Get(m_setting)); - connect(&Settings::Instance(), &Settings::ConfigChanged, [this] { + connect(&Settings::Instance(), &Settings::ConfigChanged, this, [this] { QFont bf = font(); bf.setBold(Config::GetActiveLayerForConfig(m_setting) != Config::LayerType::Base); setFont(bf); -- cgit v1.2.3