Avoid accessing sprites until they finish loading
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 1 May 2012 06:08:54 +0000 (16:08 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 14 May 2012 03:36:33 +0000 (05:36 +0200)
commit1ae19b476f4675dff954ce8dac71c1625a96c0c0
treedeb762e9bda5a8eed6eb08d190023c0f453b25ff
parent4119405660d84e651abf2dd7ecabfb997be25640
Avoid accessing sprites until they finish loading

Because sprite properties are not valid until image assembly finishes,
some features of the sprite engine cannot work until sprite assembly is
finished. In these circumstances, we shouldn't crash.

Task-number: QTBUG-24797
Change-Id: I2701f9302620c2cfd5b7bc5ce1cb9f31be4d4e19
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/quick/items/qquickspriteengine.cpp
src/quick/items/qquickspriteengine_p.h
tests/auto/quick/qquickspritesequence/data/crashonstart.qml [new file with mode: 0644]
tests/auto/quick/qquickspritesequence/tst_qquickspritesequence.cpp