Fix crash calling VisualDataGroup.setGroups during initialization.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 25 Nov 2011 06:09:38 +0000 (16:09 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 Nov 2011 07:10:20 +0000 (08:10 +0100)
commit850476b75d0857f2f64fa6eb82d39c22322368a7
tree8cc97309d9c5d631b924fa339979c0e5b6633a55
parent900137ea6a593f612e091cf629fc3a0ec929fb5f
Fix crash calling VisualDataGroup.setGroups during initialization.

A VisualDataModel's meta type is constructed in componentComplete(),
avoid accessing it before then.

Change-Id: Ic9fdfa3c458d5da3014289b777f74df87aa97103
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qquickvisualdatamodel.cpp
tests/auto/declarative/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp