forked from qt-creator/qt-creator
ProjectExplorer: On shutdown, delete runcontrols before singnaling done.
Change-Id: I6860465e575b6751d804304377c16a513c24f20d Reviewed-on: http://codereview.qt-project.org/5248 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user