diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-10-13 06:47:03 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-10-13 06:48:34 (GMT) |
commit | a47835bf8cabffc127c2879b758f6730aca3d52b (patch) | |
tree | 7576f73b424f376a670e5419b4eb9adf8b52e41b /src | |
parent | deb92145c5bc69b7ee252687cf5b763b33f17775 (diff) | |
download | Qt-a47835bf8cabffc127c2879b758f6730aca3d52b.zip Qt-a47835bf8cabffc127c2879b758f6730aca3d52b.tar.gz Qt-a47835bf8cabffc127c2879b758f6730aca3d52b.tar.bz2 |
Fix worker ListModels to property emit countChanged()
Task-number: QT-4094
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/util/qdeclarativelistmodelworkeragent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativelistmodelworkeragent.cpp b/src/declarative/util/qdeclarativelistmodelworkeragent.cpp index 6804d4a..852b055 100644 --- a/src/declarative/util/qdeclarativelistmodelworkeragent.cpp +++ b/src/declarative/util/qdeclarativelistmodelworkeragent.cpp @@ -208,7 +208,7 @@ bool QDeclarativeListModelWorkerAgent::event(QEvent *e) const QList<Change> &changes = s->data.changes; if (m_copy) { - bool cc = m_copy->count() != s->list->count(); + bool cc = m_orig->count() != s->list->count(); FlatListModel *orig = m_orig->m_flat; FlatListModel *copy = s->list->m_flat; |