videocollection/videocollectionwrapper/tsrc/testvideosortfilterproxymodel/src/testvideosortfilterproxymodel.cpp
changeset 40 13331705e488
parent 36 8aed59de29f9
child 50 21fe8338c6bf
--- a/videocollection/videocollectionwrapper/tsrc/testvideosortfilterproxymodel/src/testvideosortfilterproxymodel.cpp	Fri May 28 09:45:19 2010 +0300
+++ b/videocollection/videocollectionwrapper/tsrc/testvideosortfilterproxymodel/src/testvideosortfilterproxymodel.cpp	Fri Jun 11 09:44:20 2010 +0300
@@ -1365,6 +1365,7 @@
     // no albums in model
     QVERIFY(mTestObject->removeAlbums(indexList) == -1);
     
+    indexList.clear();
     mStubModel->removeAll();
     delete mTestObject;
     mTestObject = new FilterProxyTester(VideoCollectionCommon::EModelTypeCollections);
@@ -1374,9 +1375,9 @@
     mStubModel->appendData(TMPXItemId(1,2));
     mStubModel->appendData(TMPXItemId(2,2));
     mStubModel->appendData(TMPXItemId(3,2));
-    indexList.append(mTestObject->index(0,2));
-    indexList.append(mTestObject->index(1,2));
-    indexList.append(mTestObject->index(2,2));
+    indexList.append(mTestObject->index(0,0));
+    indexList.append(mTestObject->index(1,0));
+    indexList.append(mTestObject->index(2,0));
 
     // succeed
     QVERIFY(mTestObject->removeAlbums(indexList) == 0);