Commit a51d392f authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: Fix node instance view notifications

Fix node instance view notifications and settings in the model.
Now the old node instance view is detached and the new one is attached.
The test runs again. Also fixes a notification.
parent 8b923839
......@@ -417,7 +417,7 @@ void ModelPrivate::notifyCustomNotification(const AbstractView *senderView, cons
if (nodeInstanceView()) {
rewriterView()->customNotification(senderView, identifier, toModelNodeList(internalList, nodeInstanceView()), data);
nodeInstanceView()->customNotification(senderView, identifier, toModelNodeList(internalList, nodeInstanceView()), data);
if (resetModel) {
......@@ -1192,14 +1192,14 @@ void ModelPrivate::setNodeInstanceView(NodeInstanceView *nodeInstanceView)
if (nodeInstanceView ==
Q_ASSERT(!(nodeInstanceView && m_nodeInstanceView));
if (m_nodeInstanceView)
m_nodeInstanceView = nodeInstanceView;
if (nodeInstanceView)
else if (m_nodeInstanceView)
NodeInstanceView *ModelPrivate::nodeInstanceView() const
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