forked from qt-creator/qt-creator
Fix a warning about wrong RunControlState transition
The warning was issued when re-running from output pane. According to RunControlState class description the transition from Stopped to Starting is a valid one. Change-Id: I264630dc1c23c359ff4e9d4a7a292b9b0c55ec5a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1123,7 +1123,8 @@ bool RunControlPrivate::isAllowedTransition(RunControlState from, RunControlStat
|
||||
return to == RunControlState::Stopped
|
||||
|| to == RunControlState::Finishing;
|
||||
case RunControlState::Stopped:
|
||||
return to == RunControlState::Finishing;
|
||||
return to == RunControlState::Starting
|
||||
|| to == RunControlState::Finishing;
|
||||
case RunControlState::Finishing:
|
||||
return to == RunControlState::Finished;
|
||||
case RunControlState::Finished:
|
||||
|
Reference in New Issue
Block a user