diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp index 270009e8311..94aa4dbb2ce 100644 --- a/src/plugins/debugger/qml/qmlengine.cpp +++ b/src/plugins/debugger/qml/qmlengine.cpp @@ -198,7 +198,8 @@ void QmlEngine::connectionEstablished() } connect(watchersModel(),SIGNAL(layoutChanged()),this,SLOT(synchronizeWatchers())); - notifyEngineRunAndInferiorRunOk(); + if (state() == EngineRunRequested) + notifyEngineRunAndInferiorRunOk(); } void QmlEngine::beginConnection() @@ -247,7 +248,12 @@ void QmlEngine::retryMessageBoxFinished(int result) // fall through } default: + if (state() == InferiorRunOk) { + notifyInferiorSpontaneousStop(); + notifyInferiorIll(); + } else { notifyEngineRunFailed(); + } break; } }