emailuis/emailui/src/FreestyleEmailDownloadInformationMediator.cpp
branchRCL_3
changeset 34 cd2816114bd1
parent 32 a3a1ae9acec6
child 24 b5fbb9b25d57
--- a/emailuis/emailui/src/FreestyleEmailDownloadInformationMediator.cpp	Wed Mar 31 21:08:33 2010 +0300
+++ b/emailuis/emailui/src/FreestyleEmailDownloadInformationMediator.cpp	Wed Apr 14 15:42:15 2010 +0300
@@ -397,7 +397,14 @@
     	{
    		if ( iObserverArray[i].iObserver == aObserver && iObserverArray[i].iMessageId == aMessageId )
    			{
-            RemoveObserver(i);
+   		
+			TDownloadCount countObject( aMessageId );
+   		    TInt idx = iDownloadCountArray.Find( countObject, 
+   		                                         TIdentityRelation<TDownloadCount>(EqualMessageId) );    
+   		    if ( idx == KErrNotFound )
+   		        {
+				RemoveObserver(i);
+   		        }
    			}
     	}
 	}