Fix crash in listmodel when data is assigned incorrectly.
authorGlenn Watson <glenn.watson@nokia.com>
Thu, 8 Mar 2012 23:19:35 +0000 (09:19 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 9 Mar 2012 08:56:25 +0000 (09:56 +0100)
commit88a6f771f203814e118f71196c800c93ee769055
tree338a91956273422f8d4a2cf9513fc8a15c36d3a2
parent2ecf1f5d8ae37bdb4624bd1e3888a65ec357f7b3
Fix crash in listmodel when data is assigned incorrectly.

If a listmodel with static role types is created, it would crash
if a role was assigned a value type such as string, and then
subsequently assigned an array (sub list) value from a dynamic
meta object (created when using get() from JS).

Change-Id: Ibfd0b0b40be13b04103b49462cfae42a5c9f9fb9
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qquicklistmodel.cpp
tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp