QmlDesigner: fix crash

Change-Id: If0dc946e49d226144b4a9da673d7138dd1105af9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenssen
2018-08-30 17:45:00 +02:00
committed by Thomas Hartmann
parent 8b6a16c95b
commit 693c6dcc0b

View File

@@ -598,6 +598,9 @@ bool lowerAvailable(const SelectionContext &selectionState)
if (modelNode.isRootNode()) if (modelNode.isRootNode())
return false; return false;
if (!modelNode.hasParentProperty())
return false;
if (!modelNode.parentProperty().isNodeListProperty()) if (!modelNode.parentProperty().isNodeListProperty())
return false; return false;