forked from qt-creator/qt-creator
QmlDesigner: fix crash
Change-Id: If0dc946e49d226144b4a9da673d7138dd1105af9 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
8b6a16c95b
commit
693c6dcc0b
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user