summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authoraldelaro5 <aldelaro5@gmail.com>2018-05-16 00:10:40 -0400
committeraldelaro5 <aldelaro5@gmail.com>2018-05-16 00:42:35 -0400
commit33ed5b2e99208a2bbcd954bba75f99ba8dea79a0 (patch)
tree0c4a02f1fc250aa54e3d3cf0f1e8ec3c03acc236 /Source
parent51ce30e09d662c11a5fcc4f534f0ff5c6b62b7a8 (diff)
Qt/Debugger: Use QApplication::instance() as the connection context in Host_UpdateDisasmDialog()
Because running on the host instance doesn't actually allow to fire the event. This fix a regression where stepping would not udpate the GUI at all.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt2/Host.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt2/Host.cpp b/Source/Core/DolphinQt2/Host.cpp
index 458f374099..56e0b09a23 100644
--- a/Source/Core/DolphinQt2/Host.cpp
+++ b/Source/Core/DolphinQt2/Host.cpp
@@ -14,7 +14,7 @@
#include "Core/Debugger/PPCDebugInterface.h"
#include "Core/Host.h"
#include "Core/PowerPC/PowerPC.h"
-#include "DolphinQt2/QtUtils/RunOnObject.h"
+#include "DolphinQt2/QtUtils/QueueOnObject.h"
#include "DolphinQt2/Settings.h"
#include "VideoCommon/RenderBase.h"
#include "VideoCommon/VideoConfig.h"
@@ -113,7 +113,7 @@ void Host_YieldToUI()
void Host_UpdateDisasmDialog()
{
- QueueOnObject(Host::GetInstance(), [] { emit Host::GetInstance()->UpdateDisasmDialog(); });
+ QueueOnObject(QApplication::instance(), [] { emit Host::GetInstance()->UpdateDisasmDialog(); });
}
void Host_UpdateProgressDialog(const char* caption, int position, int total)