forked from qt-creator/qt-creator
ProjectExplorer: Do not attempt to stop application
... when the user selected "Keep running". Change-Id: Ia6f6306f9a3c88d4bd35aaf079576dafc54b6323 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user