From e6001ae2a07d38b7203e7a7ae703dc85f23423d2 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 6 Jul 2022 17:16:20 +0200 Subject: 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: Reviewed-by: Christian Stenger Reviewed-by: hjk --- src/plugins/projectexplorer/appoutputpane.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.1