Qt/Debugger: Update the register view properly on pause and step

This commit is contained in:
aldelaro5 2018-05-11 04:26:18 -04:00
parent 7388774f10
commit daf8df951c
No known key found for this signature in database
GPG Key ID: 054DD3E6FF48DB71
1 changed files with 7 additions and 8 deletions

View File

@ -7,6 +7,7 @@
#include "Core/Core.h" #include "Core/Core.h"
#include "Core/HW/ProcessorInterface.h" #include "Core/HW/ProcessorInterface.h"
#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PowerPC.h"
#include "DolphinQt2/Host.h"
#include "DolphinQt2/QtUtils/ActionHelper.h" #include "DolphinQt2/QtUtils/ActionHelper.h"
#include "DolphinQt2/Settings.h" #include "DolphinQt2/Settings.h"
@ -30,15 +31,13 @@ RegisterWidget::RegisterWidget(QWidget* parent) : QDockWidget(parent)
PopulateTable(); PopulateTable();
ConnectWidgets(); 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) if (Settings::Instance().IsDebugModeEnabled() && Core::GetState() == Core::State::Paused)
emit RequestTableUpdate(); {
});
connect(this, &RegisterWidget::RequestTableUpdate, [this] {
m_updating = true; m_updating = true;
emit UpdateTable(); emit UpdateTable();
m_updating = false; m_updating = false;
}
}); });
connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged, connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged,