ProjectExplorer: Fix recent indeterministic state of stop button

The recent RunControl related changes have led to several regressions
in the fragile handling of button states in the output pane.

Take advantage of the new Starting phase to fix disabling of the
run and enabling of the stop button at reasonable times.

Change-Id: Iae191a840484dd08d61facf6b9f439bfafcbbcb0
Task-number: QTCREATORBUG-18508
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2017-07-05 14:25:42 +02:00
parent 11333a03cd
commit d857fa52f7
4 changed files with 19 additions and 13 deletions

View File

@@ -1117,6 +1117,11 @@ bool RunControl::isStopping() const
return d->state == RunControlState::Stopping;
}
bool RunControl::isStopped() const
{
return d->state == RunControlState::Stopped;
}
/*!
Prompts to terminate the application with the \gui {Do not ask again}
checkbox.