Debugger: Combine the InferiorShutdown{Ok,Failed} states

... into a InferiorShutdownFinished.

Change-Id: Icb5394f38f52f7cf300dc83f4eb8f2f0777bbcba
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2017-12-14 09:36:41 +01:00
parent ee9ecf8661
commit 83c13ff191
11 changed files with 56 additions and 92 deletions

View File

@@ -587,14 +587,9 @@ void QmlCppEngine::slaveEngineStateChanged
m_qmlEngine->quitDebugger();
break;
}
case InferiorShutdownFailed: {
CHECK_STATE(InferiorShutdownRequested);
notifyInferiorShutdownFailed();
break;
}
case InferiorShutdownOk: {
case InferiorShutdownFinished: {
if (state() == InferiorShutdownRequested) {
notifyInferiorShutdownOk();
notifyInferiorShutdownFinished();
} else {
// we got InferiorExitOk before, but ignored it ...
notifyInferiorExited();