Commit 32cb2458 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlCppDebugger: Quit the qml debugger before the connection already closed



Change-Id: If8eddda3f99b6aef501f43f05b6667c250ab7659
Reviewed-by: default avatarAurindam Jana <aurindam.jana@nokia.com>
parent cdb78c53
......@@ -660,6 +660,7 @@ void QmlCppEngine::slaveEngineStateChanged
case InferiorExitOk: {
// InferiorExitOk will be called through notifyInferiorExited
// when InferiorShutDownOk is reached
qmlEngine()->quitDebugger();
break;
}
case InferiorShutdownRequested: {
......@@ -687,17 +688,16 @@ void QmlCppEngine::slaveEngineStateChanged
case EngineShutdownRequested: {
// set by queueShutdownEngine()
QTC_ASSERT(state() == EngineShutdownRequested, qDebug() << state());
qmlEngine()->quitDebugger();
break;
}
case EngineShutdownFailed: {
QTC_ASSERT(state() == EngineShutdownRequested, qDebug() << state());
qmlEngine()->quitDebugger();
notifyEngineShutdownFailed();
break;
}
case EngineShutdownOk: {
QTC_ASSERT(state() == EngineShutdownRequested, qDebug() << state());
qmlEngine()->quitDebugger();
notifyEngineShutdownOk();
break;
}
......
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