From dae1a84e571691e32147e7d1699e161693dbfee1 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Fri, 1 May 2009 10:40:13 +1000 Subject: Fix insertion of items when there are no existing items. --- src/declarative/fx/qfxpathview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12