Commit 19bfcc83 authored by Tobias Hunger's avatar Tobias Hunger

Fix crash on exit

Fix crash happening when closing creator after the toolchain settings
were shown.

Change-Id: I4ed3b4cb0c3a2c303ba0d346d90fd275022457da
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 7ec492f6
......@@ -484,7 +484,7 @@ QWidget *ToolChainOptionsPage::createPage(QWidget *parent)
horizontalLayout->addLayout(verticalLayout);
horizontalLayout->addLayout(buttonLayout);
Q_ASSERT(!m_model);
m_model = new ToolChainModel(verticalLayout);
m_model = new ToolChainModel(m_configWidget);
connect(m_model, SIGNAL(toolChainStateChanged()), this, SLOT(updateState()));
......@@ -548,14 +548,16 @@ void ToolChainOptionsPage::apply()
void ToolChainOptionsPage::finish()
{
if (m_model) {
m_model->deleteLater();
m_model = 0;
}
disconnect(ToolChainManager::instance(), SIGNAL(toolChainsChanged()),
this, SLOT(toolChainSelectionChanged()));
// delete by settingsdialog;
m_configWidget = 0;
m_configWidget = 0; // deleted by settingsdialog
m_selectionModel = 0; // child of m_configWidget
// childs of m_configWidget
// children of m_configWidget
m_model = 0;
m_container = 0;
m_selectionModel = 0;
m_toolChainView = 0;
m_addButton = 0;
m_cloneButton = 0;
......
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