videocollection/mpxmyvideoscollection/src/vcxmyvideosalbum.cpp
changeset 24 7d93ee07fb27
parent 17 69946d1824c4
child 46 adbe7d5ba2f5
--- a/videocollection/mpxmyvideoscollection/src/vcxmyvideosalbum.cpp	Fri May 14 15:53:50 2010 +0300
+++ b/videocollection/mpxmyvideoscollection/src/vcxmyvideosalbum.cpp	Thu May 27 12:53:14 2010 +0300
@@ -294,8 +294,8 @@
 //
 void CVcxMyVideosAlbum::CalculateAttributesL( TInt aStartIndex )
     {
+    TInt videoCount = 0;
     TUint32 count = iVideoList.Count();
-    iMedia->SetTObjectValueL<TUint32>( KVcxMediaMyVideosCategoryItemCount, count );
     TInt newCount = 0;
     CMPXMedia* video;
     CMPXMedia* latestNewVideo = NULL;
@@ -308,6 +308,7 @@
         video = iCollection.iCache->FindVideoByMdsIdL( iVideoList[i].iMdsId, pos );
         if ( video )
             {
+            videoCount++;
             flags = TVcxMyVideosCollectionUtil::FlagsL( *video );
             if ( flags & EVcxMyVideosVideoNew )
                 {
@@ -321,7 +322,7 @@
                 }
             }
         }
-    iMedia->SetTObjectValueL<TUint32>( KVcxMediaMyVideosCategoryItemCount, count );
+    iMedia->SetTObjectValueL<TUint32>( KVcxMediaMyVideosCategoryItemCount, videoCount );
     iMedia->SetTObjectValueL<TUint32>( KVcxMediaMyVideosCategoryNewItemCount, newCount );
     if ( latestNewVideo )
         {