forked from qt-creator/qt-creator
Debugger: Avoid some undesired state transitions on shutdown
Seeing an ill engine while trying to stop means that the stop failed. Also, a finished master engine doesn't need further updates. Task-number: QTCREATORBUG-14089 Change-Id: Icd5b090dfcdc0875953d8756a909b1405e05f71f Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -492,6 +492,11 @@ void QmlCppEngine::slaveEngineStateChanged
|
||||
EDEBUG(" COMBINED ENGINE: " << this << state() << isDying());
|
||||
}
|
||||
|
||||
if (state() == DebuggerFinished) {
|
||||
// We are done and don't care about slave state changes anymore.
|
||||
return;
|
||||
}
|
||||
|
||||
// Idea is to follow the state of the cpp engine, except where we are stepping in QML.
|
||||
// That is, when the QmlEngine moves between InferiorStopOk, and InferiorRunOk, InferiorStopOk ...
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user