Updated feedinfo handling some
authorLars Persson <lars.persson@embeddev.se>
Wed, 31 Mar 2010 08:41:07 +0200
changeset 59 dc142c8740eb
parent 58 87cb33beeae2
child 60 bbf5c5204844
Updated feedinfo handling some
engine/src/FeedInfo.cpp
--- a/engine/src/FeedInfo.cpp	Wed Mar 31 08:19:35 2010 +0200
+++ b/engine/src/FeedInfo.cpp	Wed Mar 31 08:41:07 2010 +0200
@@ -50,8 +50,8 @@
 	copy->SetLinkL(Link());
 	copy->SetBuildDate(BuildDate());
 	copy->SetLastUpdated(LastUpdated());
+	copy->iFeedIcon->Duplicate(iFeedIcon->Handle());
 	copy->SetImageFileNameL(ImageFileName());
-	copy->iFeedIcon->Duplicate(iFeedIcon->Handle());
 	if(CustomTitle())
 		{
 		copy->SetCustomTitle();
@@ -205,7 +205,7 @@
 	cacheFileName = parser.DriveAndPath();
 	cacheFileName.Append(parser.Name());
 	cacheFileName.Append(KMbmExtension());
-	if( BaflUtils::FileExists(CEikonEnv::Static()->FsSession(), cacheFileName) )
+	if( iFeedIcon->SizeInPixels() == TSize(0,0) && BaflUtils::FileExists(CEikonEnv::Static()->FsSession(), cacheFileName) )
 		{
 		iFeedIcon = CEikonEnv::Static()->CreateBitmapL(cacheFileName, 0);
 		}	
@@ -251,11 +251,7 @@
 		TParsePtrC parser(*iImageFileName);
 		cacheFileName = parser.DriveAndPath();
 		cacheFileName.Append(parser.Name());
-		cacheFileName.Append(KMbmExtension());
-		if( !BaflUtils::FileExists(CEikonEnv::Static()->FsSession(), cacheFileName) )
-			{
-			iFeedIcon->Save(cacheFileName);
-			}
-			
+		cacheFileName.Append(KMbmExtension());		
+		iFeedIcon->Save(cacheFileName);					
 		}
 	}