diff options
author | hjk <hjk@qt.io> | 2022-01-03 17:09:15 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-01-04 15:20:31 +0000 |
commit | 70a9b3deae366bbcc63b439e37bf80c46927b6ff (patch) | |
tree | e6d0b116390d20d99bc1412477ca6da602d29eca /src/plugins/projectexplorer/appoutputpane.cpp | |
parent | 1e46db88a1abd00e49bf2aefd364779e73fba8bf (diff) |
ProjectExplorer: Do not attempt to stop application
... when the user selected "Keep running".
Change-Id: Ia6f6306f9a3c88d4bd35aaf079576dafc54b6323
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r-- | src/plugins/projectexplorer/appoutputpane.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 9a6d512bc3..419dfb7e36 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(); } |