Commit 6763adce authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.formEditor: Test if the qmlitem ist valid

This is preventing a crash if the nodeinstance is invalid.
parent 09d0c9e3
......@@ -142,6 +142,7 @@ void SelectionTool::hoverMoveEvent(const QList<QGraphicsItem*> &itemList,
FormEditorItem *formEditorItem = FormEditorItem::fromQGraphicsItem(item);
if (formEditorItem
&& formEditorItem->qmlItemNode().isValid()
&& !formEditorItem->qmlItemNode().isRootNode()
&& (formEditorItem->qmlItemNode().hasShowContent() || !m_selectOnlyContentItems))
{
......
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