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:
dt
2009-02-16 15:23:49 +01:00
parent d1edc2a2fa
commit 91707ee075
2 changed files with 9 additions and 1 deletions

View File

@@ -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;
} }

View File

@@ -84,6 +84,7 @@ public:
public slots: public slots:
void projectRemoved(); void projectRemoved();
void coreAboutToClose();
private slots: private slots:
void insertLine(); void insertLine();