forked from qt-creator/qt-creator
legalize InferiorRunningRequested => InferiorStopped transition
it is alread used for the error cases anyway. one could introduce an intermediate state InferiorRunningFailed, but this doesn't seem to bring any advantages.
This commit is contained in:
@@ -1576,7 +1576,7 @@ static bool isAllowedTransition(int from, int to)
|
|||||||
return to == EngineShuttingDown;
|
return to == EngineShuttingDown;
|
||||||
|
|
||||||
case InferiorRunningRequested:
|
case InferiorRunningRequested:
|
||||||
return to == InferiorRunning;
|
return to == InferiorRunning || to == InferiorStopped;
|
||||||
case InferiorRunning:
|
case InferiorRunning:
|
||||||
return to == InferiorStopping;
|
return to == InferiorStopping;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user