summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-05-01 00:40:13 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-05-01 00:40:13 (GMT)
commitdae1a84e571691e32147e7d1699e161693dbfee1 (patch)
treee7a5d342ed3064127096e0546892f2613b972ef9 /src/declarative/fx
parentafbf5a144f40cacce0673292d34eda3086a3745e (diff)
downloadQt-dae1a84e571691e32147e7d1699e161693dbfee1.zip
Qt-dae1a84e571691e32147e7d1699e161693dbfee1.tar.gz
Qt-dae1a84e571691e32147e7d1699e161693dbfee1.tar.bz2
Fix insertion of items when there are no existing items.
Diffstat (limited to 'src/declarative/fx')
-rw-r--r--src/declarative/fx/qfxpathview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxpathview.cpp b/src/declarative/fx/qfxpathview.cpp
index 4785a52..810a359 100644
--- a/src/declarative/fx/qfxpathview.cpp
+++ b/src/declarative/fx/qfxpathview.cpp
@@ -658,7 +658,7 @@ void QFxPathView::itemsInserted(int modelIndex, int count)
{
//XXX support animated insertion
Q_D(QFxPathView);
- if (d->pathItems == -1 || d->items.count() < d->pathItems) {
+ if (d->pathItems == -1) {
for (int i = 0; i < count; ++i) {
QFxItem *item = d->model->item(modelIndex + i);
item->setZ(modelIndex + i);