More fixes for QDeclarativeListModelWorkerAgent cleanup
authorCharles Yin <charles.yin@nokia.com>
Tue, 7 Feb 2012 02:06:49 +0000 (12:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Feb 2012 02:55:42 +0000 (03:55 +0100)
commit5590d4aea56173ee644c80ea09984b6d07b0c1df
treefe824fe0f38129bd92c814cb2fa1a1652d5c8548
parentf2fa12b7d61cbe3e8d0a5372478172545856dfd4
More fixes for QDeclarativeListModelWorkerAgent cleanup

1) Use deleteLater() instead of delete to avoid crashing with any pending events
2) During event processing, return earlier if possible

Change-Id: Ia7d6c95acf1175a16b80e952b95909bb5bbc9433
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/qml/qdeclarativelistmodelworkeragent.cpp