--- a/videocollection/mpxmyvideoscollection/src/vcxmyvideoscategories.cpp Wed Sep 15 12:15:24 2010 +0300
+++ b/videocollection/mpxmyvideoscollection/src/vcxmyvideoscategories.cpp Wed Oct 13 14:34:36 2010 +0300
@@ -256,8 +256,7 @@
}
// Update videos counts
- UpdateVideosCountL( *categoryArray, videosIncrements,
- newVideosIncrements, !aNewItemsStartIndex );
+ UpdateVideosCountL( *categoryArray, videosIncrements, newVideosIncrements );
CleanupStack::PopAndDestroy( &newVideosIncrements ); // <-1
CleanupStack::PopAndDestroy( &videosIncrements ); // <-1
@@ -268,8 +267,7 @@
// ----------------------------------------------------------------------------
//
void CVcxMyVideosCategories::UpdateVideosCountL( CMPXMediaArray& aCategoryArray,
- RArray<TInt>& aVideosIncrements, RArray<TInt>& aNewVideosIncrements,
- TBool aForceUpdate )
+ RArray<TInt>& aVideosIncrements, RArray<TInt>& aNewVideosIncrements )
{
TBool modified = EFalse;
TInt categoryCount = aCategoryArray.Count();
@@ -277,7 +275,7 @@
for ( TInt i = 0; i < categoryCount; i++ )
{
- if ( aForceUpdate || aVideosIncrements[i] != 0 )
+ if ( aVideosIncrements[i] != 0 )
{
category = aCategoryArray.AtL( i );
@@ -289,7 +287,7 @@
}
//codescanner warning: aNewVideosIncrements count is same as aCategoryArray count, so the range is checked
- if ( aForceUpdate || aNewVideosIncrements[i] != 0 )
+ if ( aNewVideosIncrements[i] != 0 )
{
category = aCategoryArray.AtL( i );
@@ -316,9 +314,10 @@
if ( aIncrement != 0 )
{
AddToTUint32AttributeL( aCategory, aIncrement, aCountAttribute );
+
+ iCollection.iMessageList->AddEventL( aCategory.ValueTObjectL<TMPXItemId>(
+ KMPXMediaGeneralId ), EMPXItemModified, aEventInfo );
}
- iCollection.iMessageList->AddEventL( aCategory.ValueTObjectL<TMPXItemId>(
- KMPXMediaGeneralId ), EMPXItemModified, aEventInfo );
}
// ----------------------------------------------------------------------------