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)));
|
connect(m_tabWidget, SIGNAL(currentChanged(int)), this, SLOT(tabChanged(int)));
|
||||||
|
|
||||||
m_mainWidget->setLayout(layout);
|
m_mainWidget->setLayout(layout);
|
||||||
|
|
||||||
|
connect(Core::ICore::instance(), SIGNAL(coreAboutToClose()),
|
||||||
|
this, SLOT(coreAboutToClose()));
|
||||||
}
|
}
|
||||||
|
|
||||||
OutputPane::~OutputPane()
|
void OutputPane::coreAboutToClose()
|
||||||
{
|
{
|
||||||
while (m_tabWidget->count()) {
|
while (m_tabWidget->count()) {
|
||||||
RunControl *rc = runControlForTab(0);
|
RunControl *rc = runControlForTab(0);
|
||||||
@@ -120,6 +123,10 @@ OutputPane::~OutputPane()
|
|||||||
rc->stop();
|
rc->stop();
|
||||||
closeTab(0);
|
closeTab(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
OutputPane::~OutputPane()
|
||||||
|
{
|
||||||
delete m_mainWidget;
|
delete m_mainWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -84,6 +84,7 @@ public:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void projectRemoved();
|
void projectRemoved();
|
||||||
|
void coreAboutToClose();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void insertLine();
|
void insertLine();
|
||||||
|
Reference in New Issue
Block a user