diff options
| author | LC <mathew1800@gmail.com> | 2020-09-13 10:39:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-13 10:39:44 -0400 |
| commit | eae68194b30610c60f224c676f573de024ed3a78 (patch) | |
| tree | e955cf211c0393030c79d3c4fa23148b548fb2e7 /Source/Core/DolphinQt/Debugger/CodeWidget.cpp | |
| parent | a481a529720e59f8339de5af0f33f5e6df9d6686 (diff) | |
| parent | 2bb7d207b74d35ca435bfc9a47c712996d353056 (diff) | |
Merge pull request #9076 from iwubcode/qt_graphics_controls_destruction
DolphinQt: properly remove slot connection for ConfigChange when object is destructed
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp index 7c1cdd82eb..4232a40695 100644 --- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp @@ -43,7 +43,7 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent) // according to Settings setFloating(settings.value(QStringLiteral("codewidget/floating")).toBool()); - connect(&Settings::Instance(), &Settings::CodeVisibilityChanged, + connect(&Settings::Instance(), &Settings::CodeVisibilityChanged, this, [this](bool visible) { setHidden(!visible); }); connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, [this] { @@ -54,7 +54,7 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent) connect(Host::GetInstance(), &Host::NotifyMapLoaded, this, &CodeWidget::UpdateSymbols); - connect(&Settings::Instance(), &Settings::DebugModeToggled, + connect(&Settings::Instance(), &Settings::DebugModeToggled, this, [this](bool enabled) { setHidden(!enabled || !Settings::Instance().IsCodeVisible()); }); connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, &CodeWidget::Update); |
