diff --git a/src/plugins/debugger/qml/qmlcppengine.cpp b/src/plugins/debugger/qml/qmlcppengine.cpp index d90799a42ac..bf3a51e43f5 100644 --- a/src/plugins/debugger/qml/qmlcppengine.cpp +++ b/src/plugins/debugger/qml/qmlcppengine.cpp @@ -481,12 +481,16 @@ void QmlCppEngine::slaveEngineStateChanged break; } case InferiorRunOk: { - if (state() == EngineRunRequested) + if (state() == EngineRunRequested) { notifyEngineRunAndInferiorRunOk(); - else if (state() == InferiorRunRequested) + } else if (state() == InferiorRunRequested) { notifyInferiorRunOk(); - else + } else if (state() == InferiorStopOk) { + notifyInferiorRunRequested(); + notifyInferiorRunOk(); + } else { QTC_ASSERT(false, qDebug() << state()); + } if (m_qmlEngine->state() == InferiorStopOk) { // track qml engine again