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/GraphicsBool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp') diff --git a/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp b/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp index efd761416e..4d5eaf6973 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp @@ -18,7 +18,7 @@ GraphicsBool::GraphicsBool(const QString& label, const Config::Info& setti connect(this, &QCheckBox::toggled, this, &GraphicsBool::Update); setChecked(Config::Get(m_setting) ^ reverse); - 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