summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorNils Jeisecke <jeisecke@saltation.de>2013-02-15 17:00:15 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-20 09:41:58 (GMT)
commita4c225257cd502ccf549140d2e74b15e7d03ac05 (patch)
treec9420cc6409b43124db1d8df57ef32e4ffcade44 /src/declarative
parentbe81e1e2e49db99f709273079680e4026e9e77b6 (diff)
downloadQt-a4c225257cd502ccf549140d2e74b15e7d03ac05.zip
Qt-a4c225257cd502ccf549140d2e74b15e7d03ac05.tar.gz
Qt-a4c225257cd502ccf549140d2e74b15e7d03ac05.tar.bz2
Fix QDeclarativeListView currentSection property update
Model modifications that did not trigger the refill logic caused the view's currentSection property to contain an outdated value. A new autotest has been added to catch the bug. Task-number: QTBUG-29712 Change-Id: I88cf1295ac55dad7596b6ba1fe475ebf98a31026 Reviewed-by: Alan Alpert <aalpert@rim.com> (cherry picked from qtquick1/d31f965b72a1bb8aba0b846471780e90fcc895ba)
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativelistview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview.cpp b/src/declarative/graphicsitems/qdeclarativelistview.cpp
index b078c31..38b3c4d 100644
--- a/src/declarative/graphicsitems/qdeclarativelistview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativelistview.cpp
@@ -896,6 +896,8 @@ void QDeclarativeListViewPrivate::layout()
fixupPosition();
q->refill();
}
+ if (sectionCriteria)
+ updateCurrentSection();
if (header)
updateHeader();
if (footer)