Task-number: QTCREATORBUG-5503
Change-Id: Ib6469b584e82f6b0cb579d5ab81658f918fd8690
Reviewed-on: http://codereview.qt.nokia.com/1877
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
m_internalIdCounter(1)
{
m_rootInternalNode = createNode("QtQuick/Item", 1, 0, PropertyListType(), PropertyListType(), QString(), ModelNode::NodeWithoutSource,true);
+ m_acutalStateNode = m_rootInternalNode;
}
ModelPrivate::~ModelPrivate()
if (!state.isValid())
return;
- setAcutalStateNode(state.modelNode());
+ if (!model())
+ return;
+
+ if (actualStateNode() != state.modelNode())
+ setAcutalStateNode(state.modelNode());
}
QmlModelState QmlModelView::currentState() const