forked from qt-creator/qt-creator
Fixes: Move code from ~OutputWindow to an earlier place.
Details: We should stop all running runners, while the plugins are still alive.
This commit is contained in:
@@ -110,9 +110,12 @@ OutputPane::OutputPane()
|
||||
connect(m_tabWidget, SIGNAL(currentChanged(int)), this, SLOT(tabChanged(int)));
|
||||
|
||||
m_mainWidget->setLayout(layout);
|
||||
|
||||
connect(Core::ICore::instance(), SIGNAL(coreAboutToClose()),
|
||||
this, SLOT(coreAboutToClose()));
|
||||
}
|
||||
|
||||
OutputPane::~OutputPane()
|
||||
void OutputPane::coreAboutToClose()
|
||||
{
|
||||
while (m_tabWidget->count()) {
|
||||
RunControl *rc = runControlForTab(0);
|
||||
@@ -120,6 +123,10 @@ OutputPane::~OutputPane()
|
||||
rc->stop();
|
||||
closeTab(0);
|
||||
}
|
||||
}
|
||||
|
||||
OutputPane::~OutputPane()
|
||||
{
|
||||
delete m_mainWidget;
|
||||
}
|
||||
|
||||
|
@@ -84,6 +84,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void projectRemoved();
|
||||
void coreAboutToClose();
|
||||
|
||||
private slots:
|
||||
void insertLine();
|
||||
|
Reference in New Issue
Block a user