diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-12-19 13:46:56 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-20 05:42:50 +0100 |
commit | 2ac33932be979452e1d4fa3ec4e6b6a301e5f6e4 (patch) | |
tree | bbae35ef2265d744dc81442436c0e0edde1473fd /src | |
parent | fcf1490c34f2fa31ca9a49192774b16fe125a6fb (diff) |
Fix valgrind warning.
Update the initial values of the VisualDataModel attached object
when binding to an object.
Change-Id: I2e11c8bf13198e848d11c8cea9885cb64240f941
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/items/qquickvisualdatamodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickvisualdatamodel.cpp b/src/quick/items/qquickvisualdatamodel.cpp index efc03e1f04..621ab124bb 100644 --- a/src/quick/items/qquickvisualdatamodel.cpp +++ b/src/quick/items/qquickvisualdatamodel.cpp @@ -1057,7 +1057,7 @@ void QQuickVisualDataModelPrivate::setInitialState(QVDMIncubationTask *incubatio incubationTask->incubatingContext = 0; cacheItem->attached = QQuickVisualDataModelAttached::properties(cacheItem->object); - cacheItem->attached->m_cacheItem = cacheItem; + cacheItem->attached->setCacheItem(cacheItem); new QQuickVisualDataModelAttachedMetaObject(cacheItem->attached, m_cacheMetaType); cacheItem->attached->emitChanges(); |