From daf8df951cd3e7dd3627c0f41a69e89c6a85706e Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Fri, 11 May 2018 04:26:18 -0400 Subject: [PATCH] Qt/Debugger: Update the register view properly on pause and step --- .../Core/DolphinQt2/Debugger/RegisterWidget.cpp | 15 +++++++-------- 1 file 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,