diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2020-09-12 17:53:17 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2020-09-12 17:53:17 -0500 |
| commit | 2bb7d207b74d35ca435bfc9a47c712996d353056 (patch) | |
| tree | ebda1f73d52be99985c6ee4e6698c4056d4e57ea /Source/Core/DolphinQt/Debugger/ThreadWidget.cpp | |
| parent | a83bf8bc59ee56bc7b6574c749961fd115004143 (diff) | |
DolphinQt: fix other widgets that use lambdas (capturing this) without setting the receiver
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/ThreadWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/ThreadWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp index eceb9a5a21..bf288f8b02 100644 --- a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp @@ -41,10 +41,10 @@ ThreadWidget::ThreadWidget(QWidget* parent) : QDockWidget(parent) connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, &ThreadWidget::Update); - connect(&Settings::Instance(), &Settings::ThreadsVisibilityChanged, + connect(&Settings::Instance(), &Settings::ThreadsVisibilityChanged, 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().IsThreadsVisible()); }); } |
