Commit aa3270a1 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Fix crash

This was introduced when adjusting the selection behaivour.

When we change to the selection tool we might delete items.
This item could be in itemlist we forward to AbstractFormEditorTool.

Therefore we change to the selection tool after calling
mouseReleaseEvent().

Change-Id: I5cab902b8560780c6ee4edc3466e7087d719f1ef
Reviewed-by: Vikas Pachdha's avatarVikas Pachdha <vikas.pachdha@qt.io>
parent 705c618a
......@@ -246,9 +246,9 @@ void MoveTool::mouseReleaseEvent(const QList<QGraphicsItem*> &itemList,
m_movingItems.clear();
}
view()->changeToSelectionTool();
AbstractFormEditorTool::mouseReleaseEvent(itemList, event);
view()->changeToSelectionTool();
}
void MoveTool::mouseDoubleClickEvent(const QList<QGraphicsItem*> &itemList, QGraphicsSceneMouseEvent *event)
......
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