forked from qt-creator/qt-creator
ProjectExplorer: Split Target and ToolRunners into smaller tasks
This increases re-usability of activities like 'port gathering', and makes their use less dependent on actual device implementations. Change-Id: I017cb74874f2b38c487ba2d03906a675d5618647 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -525,11 +525,16 @@ void AppOutputPane::attachToRunControl()
|
||||
void AppOutputPane::stopRunControl()
|
||||
{
|
||||
const int index = currentIndex();
|
||||
QTC_ASSERT(index != -1 && m_runControlTabs.at(index).runControl->isRunning(), return);
|
||||
|
||||
QTC_ASSERT(index != -1, return);
|
||||
RunControl *rc = m_runControlTabs.at(index).runControl;
|
||||
QTC_ASSERT(rc, return);
|
||||
|
||||
if (rc->isRunning() && optionallyPromptToStop(rc))
|
||||
rc->initiateStop();
|
||||
else if (rc->isStarting()) {
|
||||
QTC_CHECK(false);
|
||||
rc->initiateStop();
|
||||
}
|
||||
|
||||
if (debug)
|
||||
qDebug() << "OutputPane::stopRunControl " << rc;
|
||||
|
||||
Reference in New Issue
Block a user