diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 3cd6cf6ce1d2bd6bf1739b3b3175e41ae6087aaa..3672a3bf61eecf9224fed0aae66a7141c1da26b5 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -301,7 +301,7 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc) connect(rc, SIGNAL(started()), this, SLOT(runControlStarted())); connect(rc, SIGNAL(finished()), - this, SLOT(runControlFinished())); + this, SLOT(runControlFinished()), Qt::QueuedConnection); connect(rc, SIGNAL(applicationProcessHandleChanged()), this, SLOT(enableButtons())); connect(rc, SIGNAL(appendMessage(ProjectExplorer::RunControl*,QString,Utils::OutputFormat)), @@ -452,11 +452,7 @@ bool AppOutputPane::closeTab(int tabIndex, CloseTabMode closeTabMode) } m_tabWidget->removeTab(tabIndex); - if (tab.asyncClosing) { // We were invoked from its finished() signal. - tab.runControl->deleteLater(); - } else { - delete tab.runControl; - } + delete tab.runControl; delete tab.window; m_runControlTabs.removeAt(index); updateCloseActions();