QmlCppDebugger: Quit the qml debugger before the connection already closed

Change-Id: If8eddda3f99b6aef501f43f05b6667c250ab7659
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Kai Koehne
2012-03-06 09:10:57 +01:00
parent cdb78c534a
commit 32cb245883

View File

@@ -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;
}