Permalink
Browse files

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

  • Loading branch information...
aldelaro5 committed May 11, 2018
1 parent 7388774 commit daf8df951cd3e7dd3627c0f41a69e89c6a85706e
Showing with 7 additions and 8 deletions.
  1. +7 −8 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,

0 comments on commit daf8df9

Please sign in to comment.