Commit db2fcdb4 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Fix crash on exit

QtCreator crashed on exit when the library/navigator/sidebar wasn't
visible in the Design mode. This is caused by a double deletion: The
widgets have the DesignModeWidget as the default parent + the side bar
items try to delete them on exit.

Fixed by removing default parent.

Task-number: QTCREATORBUG-1197
Reviewed-by: Christiaan Janssen
parent a8db81fb
......@@ -535,14 +535,15 @@ void DesignModeWidget::setup()
}
}
m_navigator = new NavigatorView(this);
// Sidebar takes ownership
m_navigator = new NavigatorView;
m_allPropertiesBox = new AllPropertiesBox;
m_itemLibrary = new ItemLibrary;
m_allPropertiesBox = new AllPropertiesBox(this);
m_statesEditorWidget = new StatesEditorWidget(this);
m_formEditorView = new FormEditorView(this);
m_itemLibrary = new ItemLibrary(this);
//m_designToolBar = new QToolBar;
m_fakeToolBar = Core::EditorManager::createToolBar(this);
......
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