Commit 91707ee0 authored by dt's avatar dt
Browse files

Fixes: Move code from ~OutputWindow to an earlier place.

Details:  We should stop all running runners, while the plugins are
still alive.
parent d1edc2a2
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment