summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2020-09-12 17:53:17 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2020-09-12 17:53:17 -0500
commit2bb7d207b74d35ca435bfc9a47c712996d353056 (patch)
treeebda1f73d52be99985c6ee4e6698c4056d4e57ea /Source/Core/DolphinQt/Debugger/CodeWidget.cpp
parenta83bf8bc59ee56bc7b6574c749961fd115004143 (diff)
DolphinQt: fix other widgets that use lambdas (capturing this) without setting the receiver
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeWidget.cpp4
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);