Don't attempt to destroy a null persisted item.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 5 Dec 2011 05:27:00 +0000 (15:27 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Dec 2011 09:13:00 +0000 (10:13 +0100)
commit1817efd1ddaf459e5e2b001c7aa81522e13e7098
tree3a36b30d90b3df832a35cb939607385697682059
parent42ba473b3a1af1d6e0579dfc0ddb6c571c76d6c0
Don't attempt to destroy a null persisted item.

Persisted items are still only constructed on demand so we can't
assume the object is non null.

Change-Id: I1ce9563eb3b9fb1ae611e8afcf9c8c74f0563aec
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickvisualdatamodel.cpp
tests/auto/qtquick2/qquickvisualdatamodel/data/create.qml
tests/auto/qtquick2/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp