QmlCppDebugger: adjusted state changes when one engine fails

reviewed-by: hjk
This commit is contained in:
Christiaan Janssen
2011-02-02 10:42:32 +01:00
parent face88a3d2
commit 2c5d94c3c9
2 changed files with 24 additions and 8 deletions

View File

@@ -990,7 +990,7 @@ void DebuggerEngine::notifyInferiorIll()
void DebuggerEngine::shutdownSlaveEngine()
{
QTC_ASSERT(state() == InferiorShutdownOk, /**/);
QTC_ASSERT(isAllowedTransition(state(),EngineShutdownRequested), /**/);
setState(EngineShutdownRequested);
shutdownEngine();
}