diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-01 00:40:13 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-01 00:40:13 (GMT) |
commit | dae1a84e571691e32147e7d1699e161693dbfee1 (patch) | |
tree | e7a5d342ed3064127096e0546892f2613b972ef9 /src/declarative | |
parent | afbf5a144f40cacce0673292d34eda3086a3745e (diff) | |
download | Qt-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')
-rw-r--r-- | src/declarative/fx/qfxpathview.cpp | 2 |
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); |