forked from qt-creator/qt-creator
Debugger: Accept transition from InferiorStopOk to InferiorRunOk
This can happen if we continue after an automatic break point at application start. Set the state to InferiorRunRequested first, and then to InferiorRunOk. Change-Id: I0c4094ef0b335f31099cceb49b23aa3bc1a9a7af Task-number: QTCREATORBUG-19712 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -481,12 +481,16 @@ void QmlCppEngine::slaveEngineStateChanged
|
||||
break;
|
||||
}
|
||||
case InferiorRunOk: {
|
||||
if (state() == EngineRunRequested)
|
||||
if (state() == EngineRunRequested) {
|
||||
notifyEngineRunAndInferiorRunOk();
|
||||
else if (state() == InferiorRunRequested)
|
||||
} else if (state() == InferiorRunRequested) {
|
||||
notifyInferiorRunOk();
|
||||
else
|
||||
} else if (state() == InferiorStopOk) {
|
||||
notifyInferiorRunRequested();
|
||||
notifyInferiorRunOk();
|
||||
} else {
|
||||
QTC_ASSERT(false, qDebug() << state());
|
||||
}
|
||||
|
||||
if (m_qmlEngine->state() == InferiorStopOk) {
|
||||
// track qml engine again
|
||||
|
||||
Reference in New Issue
Block a user