Commit ca8daecd authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann

QmlDesigner: Fix crash for property editor detach

Change-Id: I367b45c9ae0e8f18abffceb996dbf13a14d8089a
Reviewed-on: http://codereview.qt.nokia.com/1610Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 01eece3d
......@@ -463,7 +463,10 @@ void AbstractView::changeRootNodeType(const QString &type, int majorVersion, int
ModelNode AbstractView::actualStateNode() const
{
return ModelNode(m_model.data()->m_d->actualStateNode(), m_model.data(), const_cast<AbstractView*>(this));
if (model())
return ModelNode(m_model.data()->m_d->actualStateNode(), m_model.data(), const_cast<AbstractView*>(this));
return ModelNode();
}
} // namespace QmlDesigner
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