DolphinQt: properly remove slot connection for ConfigChange when object is destructed

This commit is contained in:
iwubcode committed 2020-09-12 17:35:58 -05:00
1 parent b1fecbb71c
commit a83bf8bc59
5 files changed
+5 -5

No files matched your search

@@ -21,7 +21,7 @@ GraphicsInteger::GraphicsInteger(int minimum, int maximum, const Config::Info<in
setValue(Config::Get(setting));
connect(this, qOverload<int>(&GraphicsInteger::valueChanged), this, &GraphicsInteger::Update);
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);