summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authoraldelaro5 <aldelaro5@gmail.com>2018-05-11 04:26:18 -0400
committeraldelaro5 <aldelaro5@gmail.com>2018-05-12 19:15:24 -0400
commitdaf8df951cd3e7dd3627c0f41a69e89c6a85706e (patch)
treebbc42487845b94bc719a5a9f6d06d468679a5414 /Source
parent7388774f10da8aaa26c5203fa608aefd04fecf5b (diff)
Qt/Debugger: Update the register view properly on pause and step
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
index 647416f188..98db9f671f 100644
--- a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
+++ b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp
@@ -7,6 +7,7 @@
#include "Core/Core.h"
#include "Core/HW/ProcessorInterface.h"
#include "Core/PowerPC/PowerPC.h"
+#include "DolphinQt2/Host.h"
#include "DolphinQt2/QtUtils/ActionHelper.h"
#include "DolphinQt2/Settings.h"
@@ -30,15 +31,13 @@ RegisterWidget::RegisterWidget(QWidget* parent) : QDockWidget(parent)
PopulateTable();
ConnectWidgets();
- connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
+ connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, [this] {
if (Settings::Instance().IsDebugModeEnabled() && Core::GetState() == Core::State::Paused)
- emit RequestTableUpdate();
- });
-
- connect(this, &RegisterWidget::RequestTableUpdate, [this] {
- m_updating = true;
- emit UpdateTable();
- m_updating = false;
+ {
+ m_updating = true;
+ emit UpdateTable();
+ m_updating = false;
+ }
});
connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged,