Commit 49e7f075 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: Fix crash

I found the crash when opening:
The crash was triggered by the root item being a layout.

Change-Id: Id95aee6c76fbe1102578fb5a297b155645ebb157
Reviewed-by: Tim Jenssen's avatarTim Jenssen <>
parent 60e30300
......@@ -371,6 +371,9 @@ bool itemIsMovable(const ModelNode &modelNode)
if (modelNode.metaInfo().isSubclassOf("QtQuick.Controls.Tab"))
return false;
if (!modelNode.hasParentProperty())
return false;
if (!modelNode.parentProperty().isNodeListProperty())
return false;
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