aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/appoutputpane.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-07-06 17:16:20 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-07-14 13:12:56 +0000
commite6001ae2a07d38b7203e7a7ae703dc85f23423d2 (patch)
tree7cc862489c98cae86ce8b8c8912dc5a2022dbad2 /src/plugins/projectexplorer/appoutputpane.cpp
parent3007b990e5f940bae26b618e398c3ee66998b558 (diff)
AppOutputPane: Update buttons after stop was initiated
Otherwise it's possible to quicky press the stop button again before the process actually finishes and this leads to inconsistent state transition, resulting in assert being triggered. Change-Id: I4618a00cb9cea666992bc9ee6b60b3b3a0d9a8b9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r--src/plugins/projectexplorer/appoutputpane.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp
index bb96e200f7..413895ae92 100644
--- a/src/plugins/projectexplorer/appoutputpane.cpp
+++ b/src/plugins/projectexplorer/appoutputpane.cpp
@@ -606,8 +606,10 @@ void AppOutputPane::stopRunControl()
QTC_ASSERT(rc, return);
if (rc->isRunning()) {
- if (optionallyPromptToStop(rc))
+ if (optionallyPromptToStop(rc)) {
rc->initiateStop();
+ enableButtons(rc);
+ }
} else {
QTC_CHECK(false);
rc->forceStop();