summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/JITWidget.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/JITWidget.cpp
parenta83bf8bc59ee56bc7b6574c749961fd115004143 (diff)
DolphinQt: fix other widgets that use lambdas (capturing this) without setting the receiver
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/JITWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/JITWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/JITWidget.cpp b/Source/Core/DolphinQt/Debugger/JITWidget.cpp
index c39a12caed..0d84b80db0 100644
--- a/Source/Core/DolphinQt/Debugger/JITWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/JITWidget.cpp
@@ -41,10 +41,10 @@ JITWidget::JITWidget(QWidget* parent) : QDockWidget(parent)
m_asm_splitter->restoreState(
settings.value(QStringLiteral("jitwidget/asmsplitter")).toByteArray());
- connect(&Settings::Instance(), &Settings::JITVisibilityChanged,
+ connect(&Settings::Instance(), &Settings::JITVisibilityChanged, this,
[this](bool visible) { setHidden(!visible); });
- connect(&Settings::Instance(), &Settings::DebugModeToggled,
+ connect(&Settings::Instance(), &Settings::DebugModeToggled, this,
[this](bool enabled) { setHidden(!enabled || !Settings::Instance().IsJITVisible()); });
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, &JITWidget::Update);