Commit 85628119 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Marco Bubke
Browse files

QmlDesigner.formEditor: crash fix

I had a crash here, because the qmlItemNode was invalid.

Change-Id: Ib6d8bbde7acf7e5f6a0fb56bf496c41df29f7142
Reviewed-on: http://codereview.qt.nokia.com/438

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
parent 58504e21
......@@ -108,6 +108,7 @@ bool AbstractFormEditorTool::topSelectedItemIsMovable(const QList<QGraphicsItem*
foreach (QGraphicsItem *item, itemList) {
FormEditorItem *formEditorItem = FormEditorItem::fromQGraphicsItem(item);
if (formEditorItem
&& formEditorItem->qmlItemNode().isValid()
&& formEditorItem->qmlItemNode().instanceIsMovable()
&& !formEditorItem->qmlItemNode().instanceIsInPositioner()
&& selectedNodes.contains(formEditorItem->qmlItemNode()))
......
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