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:
Jarek Kobus
2022-02-01 09:28:44 +01:00
parent fe4156de43
commit 39d078700a

View File

@@ -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: