mpxmusicplayer/commonui/src/mpxalbumartutil.cpp
branchRCL_3
changeset 12 171e07ac910f
parent 4 beaa16f65879
child 17 70a8526f03f2
--- a/mpxmusicplayer/commonui/src/mpxalbumartutil.cpp	Fri Mar 12 15:42:25 2010 +0200
+++ b/mpxmusicplayer/commonui/src/mpxalbumartutil.cpp	Mon Mar 15 12:40:11 2010 +0200
@@ -317,20 +317,18 @@
             {
             CThumbnailObjectSource* source = CThumbnailObjectSource::NewLC( album, KMPXAlbumMimeType );
             TInt ret = NULL;
-            TInt err = KErrNone;
-            if(iThumbnailManager )
+            if(iThumbnailManager && iReqId >0)
                 {
-                if(iReqId >0)
-                    {	
-                    iThumbnailManager->CancelRequest( iReqId );
-                    }
-                TRAP(err, iReqId = TInt (iThumbnailManager->GetThumbnailL( *source, (TAny*)ret)));
-                }   
-
-            if( err != KErrNone)
-                {
-                User::Leave( KErrNotFound );
-                }  
+                iThumbnailManager->CancelRequest( iReqId );
+                }
+			if(iThumbnailManager)
+				{   
+            	TRAPD(err, iReqId = TInt (iThumbnailManager->GetThumbnailL( *source, (TAny*)ret)));	
+    	        if( err != KErrNone)
+                	{
+                	User::Leave( KErrNotFound );
+                	}
+				}  
             CleanupStack::PopAndDestroy( source );
             }
         }