Commit 9d3b0d5e authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.model: changing order of notifications for imports

The node instance view is now updated first
parent 00331c03
......@@ -161,12 +161,12 @@ void ModelPrivate::notifyImportAdded(const Import &import)
NodeMetaInfo::clearCache();
foreach (const QWeakPointer<AbstractView> &view, m_viewList)
view->importAdded(import);
if (nodeInstanceView())
nodeInstanceView()->importAdded(import);
foreach (const QWeakPointer<AbstractView> &view, m_viewList)
view->importAdded(import);
if (resetModel) {
resetModelByRewriter(description);
}
......@@ -188,12 +188,12 @@ void ModelPrivate::notifyImportRemoved(const Import &import)
NodeMetaInfo::clearCache();
foreach (const QWeakPointer<AbstractView> &view, m_viewList)
view->importRemoved(import);
if (nodeInstanceView())
nodeInstanceView()->importRemoved(import);
foreach (const QWeakPointer<AbstractView> &view, m_viewList)
view->importRemoved(import);
if (resetModel) {
resetModelByRewriter(description);
}
......
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