summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-04-27 15:29:55 +0200
committerGitHub <noreply@github.com>2020-04-27 15:29:55 +0200
commitbab04155b67541ebbff3fbb728562624b1313caa (patch)
tree6699335c3081828f45a0d9718dfcb860469a04e9 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
parentb175e9e6ac1389e93411ad953a8c4d8aa8f18e31 (diff)
parent330c80055dda516f29d18d3dd587a23d40fd5d15 (diff)
Merge pull request #8745 from AdmiralCurtiss/savestate-load-callback-qt
Qt/Debugger: Refresh on savestate load.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
index 3ea99065e2..d2cbbfb0d9 100644
--- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
@@ -30,6 +30,7 @@
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/PowerPC.h"
#include "DolphinQt/Debugger/PatchInstructionDialog.h"
+#include "DolphinQt/Host.h"
#include "DolphinQt/Resources.h"
#include "DolphinQt/Settings.h"
@@ -165,6 +166,10 @@ CodeViewWidget::CodeViewWidget()
m_address = PC;
Update();
});
+ connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, [this] {
+ m_address = PC;
+ Update();
+ });
connect(&Settings::Instance(), &Settings::ThemeChanged, this, &CodeViewWidget::Update);
}