Commit 937498c6 authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann

QmlDesigner.FormEditor: Clear all custom tools for detachment

Change-Id: I0899b77a0bbb52140db457f9ebbfda7b8e4a0780
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 83ced24f
......@@ -178,6 +178,8 @@ void FormEditorView::modelAboutToBeDetached(Model *model)
m_moveTool->clear();
m_resizeTool->clear();
m_dragTool->clear();
foreach (AbstractCustomTool *customTool, m_customToolList)
customTool->clear();
m_scene->clearFormEditorItems();
m_formEditorWidget->updateActions();
m_formEditorWidget->resetView();
......
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