Don't assert in QQuickItem::update
authorLars Knoll <lars.knoll@digia.com>
Mon, 18 Nov 2013 13:23:36 +0000 (14:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 18 Nov 2013 13:43:13 +0000 (14:43 +0100)
commit3d145175fd50b3fe31c62348307c995717d4200d
tree8813cd27a1d413eab9356c5f029ad8e707505baf
parent965878e88a9211b6995d57fddccf22ed365a9772
Don't assert in QQuickItem::update

The method can actually be called from QML, so we can not
have an assert in that method. Instead simply return if the
item has no contents

Task-number: QTBUG-34060
Change-Id: Ib28ffa5c6c63fbec956abe25020010ed73a9cfa9
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/items/qquickitem.cpp
tests/auto/qml/qqmlecmascript/data/updateCall.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp