Commit ff9fff7e authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.model: crashfix

We have to check if there actually is a nodeInstanceView

Task-number: QTCREATORBUG-4126
parent 2c390c51
......@@ -48,7 +48,7 @@ QmlModelNodeFacade::~QmlModelNodeFacade()
bool QmlModelNodeFacade::isValid() const
{
return modelNode().isValid() && qmlModelView() && qmlModelView()->hasInstanceForModelNode(modelNode()) && qmlModelView()->instanceForModelNode(modelNode()).isValid();
return modelNode().isValid() && qmlModelView() && qmlModelView()->nodeInstanceView() && qmlModelView()->hasInstanceForModelNode(modelNode()) && qmlModelView()->instanceForModelNode(modelNode()).isValid();
}
QmlModelView* QmlModelNodeFacade::qmlModelView() 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