Commit 55ade841 authored by hjk's avatar hjk
Browse files

Debugger: Do not directly call Engine::notify() functions from other threads



We call updateViews() and similar and therefore need to be in the gui thread.

Change-Id: Ia0e9be59dbcc529341449ba7f64a93cda320ff5b
Reviewed-by: default avatarUlf Hermann <ulf.hermann@digia.com>
Reviewed-by: default avatarEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
parent 023eb375
......@@ -166,7 +166,7 @@ AndroidDebugSupport::AndroidDebugSupport(AndroidRunConfiguration *runConfig,
[this](const QString &errorMsg) {
QTC_ASSERT(m_runControl, return);
m_runControl->appendMessage(errorMsg, Utils::DebugFormat);
m_engine->notifyInferiorExited();
QMetaObject::invokeMethod(m_engine, "notifyInferiorExited", Qt::QueuedConnection);
});
connect(m_runner, &AndroidRunner::remoteErrorOutput,
......
......@@ -318,8 +318,7 @@ protected:
virtual void notifyInferiorStopOk();
virtual void notifyInferiorSpontaneousStop();
virtual void notifyInferiorStopFailed();
public:
virtual void notifyInferiorExited();
Q_SLOT virtual void notifyInferiorExited();
protected:
virtual void notifyInferiorShutdownOk();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment