From 65d2a6c59037646aaa3f3d962b9de7cab58f0880 Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Wed, 16 May 2018 21:43:18 -0400 Subject: Qt/debugger: properly update when we load the symbols on boot This host event is still useful because the emu thread will load the symbols on boot if required. --- Source/Core/DolphinQt2/Debugger/CodeWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/DolphinQt2/Debugger/CodeWidget.cpp') diff --git a/Source/Core/DolphinQt2/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt2/Debugger/CodeWidget.cpp index 8c644e7375..e95fa87690 100644 --- a/Source/Core/DolphinQt2/Debugger/CodeWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/CodeWidget.cpp @@ -45,6 +45,8 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent) Update(); }); + connect(Host::GetInstance(), &Host::NotifyMapLoaded, this, &CodeWidget::UpdateSymbols); + connect(&Settings::Instance(), &Settings::DebugModeToggled, [this](bool enabled) { setHidden(!enabled || !Settings::Instance().IsCodeVisible()); }); -- cgit v1.2.3