forked from qt-creator/qt-creator
QmlEngine: Engine State transitions
Rectify wrong state transitions for "Attach to QML Port". Change-Id: Ife55344fb5089513743ff14f6bb5f2cabeed0adb Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
committed by
Aurindam Jana
parent
cfb8417dec
commit
a0134647c3
@@ -198,7 +198,8 @@ void QmlEngine::connectionEstablished()
|
|||||||
}
|
}
|
||||||
connect(watchersModel(),SIGNAL(layoutChanged()),this,SLOT(synchronizeWatchers()));
|
connect(watchersModel(),SIGNAL(layoutChanged()),this,SLOT(synchronizeWatchers()));
|
||||||
|
|
||||||
notifyEngineRunAndInferiorRunOk();
|
if (state() == EngineRunRequested)
|
||||||
|
notifyEngineRunAndInferiorRunOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlEngine::beginConnection()
|
void QmlEngine::beginConnection()
|
||||||
@@ -247,7 +248,12 @@ void QmlEngine::retryMessageBoxFinished(int result)
|
|||||||
// fall through
|
// fall through
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
if (state() == InferiorRunOk) {
|
||||||
|
notifyInferiorSpontaneousStop();
|
||||||
|
notifyInferiorIll();
|
||||||
|
} else {
|
||||||
notifyEngineRunFailed();
|
notifyEngineRunFailed();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user