forked from qt-creator/qt-creator
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: Ulf Hermann <ulf.hermann@digia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user