summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/BreakpointWidget.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/BreakpointWidget.cpp
parenta83bf8bc59ee56bc7b6574c749961fd115004143 (diff)
DolphinQt: fix other widgets that use lambdas (capturing this) without setting the receiver
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
index ea686a2dcf..8ba4f61442 100644
--- a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
@@ -40,7 +40,7 @@ BreakpointWidget::BreakpointWidget(QWidget* parent) : QDockWidget(parent)
// according to Settings
setFloating(settings.value(QStringLiteral("breakpointwidget/floating")).toBool());
- connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
+ connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) {
UpdateButtonsEnabled();
if (state == Core::State::Uninitialized)
{
@@ -50,10 +50,10 @@ BreakpointWidget::BreakpointWidget(QWidget* parent) : QDockWidget(parent)
}
});
- connect(&Settings::Instance(), &Settings::BreakpointsVisibilityChanged,
+ connect(&Settings::Instance(), &Settings::BreakpointsVisibilityChanged, this,
[this](bool visible) { setHidden(!visible); });
- connect(&Settings::Instance(), &Settings::DebugModeToggled, [this](bool enabled) {
+ connect(&Settings::Instance(), &Settings::DebugModeToggled, this, [this](bool enabled) {
setHidden(!enabled || !Settings::Instance().IsBreakpointsVisible());
});