examples/itemviews/fetchmore/filelistmodel.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
--- a/examples/itemviews/fetchmore/filelistmodel.cpp	Tue Jul 06 15:10:48 2010 +0300
+++ b/examples/itemviews/fetchmore/filelistmodel.cpp	Wed Aug 18 10:37:55 2010 +0300
@@ -92,7 +92,7 @@
     int remainder = fileList.size() - fileCount;
     int itemsToFetch = qMin(100, remainder);
 
-    beginInsertRows(QModelIndex(), fileCount, fileCount+itemsToFetch);
+    beginInsertRows(QModelIndex(), fileCount, fileCount+itemsToFetch-1);
     
     fileCount += itemsToFetch;