videocollection/hgmyvideos/src/vcxhgmyvideoscollectionclient.cpp
branchRCL_3
changeset 6 7d91903f795f
parent 0 96612d01cf9f
child 8 ce5ada96ab30
--- a/videocollection/hgmyvideos/src/vcxhgmyvideoscollectionclient.cpp	Tue Feb 02 00:12:10 2010 +0200
+++ b/videocollection/hgmyvideos/src/vcxhgmyvideoscollectionclient.cpp	Fri Feb 19 22:52:52 2010 +0200
@@ -60,8 +60,7 @@
 //
 CVcxHgMyVideosCollectionClient::CVcxHgMyVideosCollectionClient()
   : iCollectionOpenStatus( EVcxHgCollectionNotOpen ),
-    iPendingCommand( EVcxHgMyVideosCollectionCommandNone ),
-    iCollectionLevel( KErrNotFound )
+    iPendingCommand( EVcxHgMyVideosCollectionCommandNone )
     {
     }
 
@@ -158,15 +157,12 @@
 //
 TInt CVcxHgMyVideosCollectionClient::CollectionLevelL()
     {
-    if ( iCollectionLevel == KErrNotFound )
-        {
-        CMPXCollectionPath* path = iCollectionUtility->Collection().PathL();
-        CleanupStack::PushL( path );
-        iCollectionLevel = path->Levels();
-        CleanupStack::PopAndDestroy( path );
-        }
-		
-    return iCollectionLevel;
+    CMPXCollectionPath* path = iCollectionUtility->Collection().PathL();
+    CleanupStack::PushL( path );
+    TInt collectionLevel = path->Levels();
+    CleanupStack::PopAndDestroy( path );
+
+    return collectionLevel;
     }
 
 // -----------------------------------------------------------------------------
@@ -637,8 +633,6 @@
                     {
                     case TMPXCollectionMessage::EPathChanged:
                         {
-                        iCollectionLevel = KErrNotFound;
-                        
                         if ( data == EMcContainerOpened  )
                             {
                             if ( iCollectionOpenStatus == EVcxHgCollectionOpening )