From 70a9b3deae366bbcc63b439e37bf80c46927b6ff Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 3 Jan 2022 17:09:15 +0100 Subject: [PATCH] ProjectExplorer: Do not attempt to stop application ... when the user selected "Keep running". Change-Id: Ia6f6306f9a3c88d4bd35aaf079576dafc54b6323 Reviewed-by: Eike Ziller --- src/plugins/projectexplorer/appoutputpane.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 9a6d512bc34..419dfb7e36e 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -584,9 +584,10 @@ void AppOutputPane::stopRunControl() RunControl *rc = m_runControlTabs.at(index).runControl; QTC_ASSERT(rc, return); - if (rc->isRunning() && optionallyPromptToStop(rc)) - rc->initiateStop(); - else { + if (rc->isRunning()) { + if (optionallyPromptToStop(rc)) + rc->initiateStop(); + } else { QTC_CHECK(false); rc->forceStop(); }