Commit 91bdc5de authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.Model: Call NodeInstanceView before other views for root type change

parent a20ffe05
......@@ -390,15 +390,15 @@ void ModelPrivate::notifyRootNodeTypeChanged(const QString &type, int majorVersi
resetModel = true;
}
if (nodeInstanceView())
nodeInstanceView()->rootNodeTypeChanged(type, majorVersion, minorVersion);
foreach (const QWeakPointer<AbstractView> &view, m_viewList) {
Q_ASSERT(view != 0);
view->rootNodeTypeChanged(type, majorVersion, minorVersion);
}
if (nodeInstanceView())
nodeInstanceView()->rootNodeTypeChanged(type, majorVersion, minorVersion);
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