diff options
| author | aldelaro5 <aldelaro5@gmail.com> | 2018-05-05 18:17:06 -0400 |
|---|---|---|
| committer | aldelaro5 <aldelaro5@gmail.com> | 2018-05-12 19:04:30 -0400 |
| commit | 238c801711f9daa4613e988fa2147bd9e852ba91 (patch) | |
| tree | 7861a27ea62df703b5a25a3197524ba9c1a34497 /Source/Core/DolphinQt2/MenuBar.cpp | |
| parent | 70ca98c8e782353f8885faf5854540cdef305e03 (diff) | |
Qt/debugger: properly updates when we break
The Host_UpdateDisasmDialog was unimplemented in Qt which is required to get updates when we break. Additionally, this updates the debugger toolbar.
Diffstat (limited to 'Source/Core/DolphinQt2/MenuBar.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MenuBar.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp index a7fb9c0744..7ffe83eecb 100644 --- a/Source/Core/DolphinQt2/MenuBar.cpp +++ b/Source/Core/DolphinQt2/MenuBar.cpp @@ -46,6 +46,7 @@ #include "DiscIO/WiiSaveBanner.h" #include "DolphinQt2/AboutDialog.h" +#include "DolphinQt2/Host.h" #include "DolphinQt2/QtUtils/ActionHelper.h" #include "DolphinQt2/Settings.h" @@ -65,6 +66,9 @@ MenuBar::MenuBar(QWidget* parent) : QMenuBar(parent) connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [=](Core::State state) { OnEmulationStateChanged(state); }); + connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, + [this] { OnEmulationStateChanged(Core::GetState()); }); + OnEmulationStateChanged(Core::GetState()); connect(&Settings::Instance(), &Settings::DebugModeToggled, this, &MenuBar::OnDebugModeToggled); |
