Commit cdf031c8 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.model: properly detach from views

Properly detach from rewriter view and node instance view
on model destruction.

Reviewed-by: Marco Bubke
parent 5bce99b9
......@@ -105,6 +105,16 @@ void ModelPrivate::detachAllViews()
detachView(view.data(), true);
m_viewList.clear();
if (m_rewriterView) {
m_rewriterView->modelAboutToBeDetached(m_q);
m_rewriterView.clear();
}
if (m_nodeInstanceView) {
m_nodeInstanceView->modelAboutToBeDetached(m_q);
m_nodeInstanceView.clear();
}
}
Model *ModelPrivate::create(QString type, int major, int minor)
......
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