engine/src/FeedEngine.cpp
changeset 111 12c59f14a031
parent 110 403412eb5292
child 114 27f6f5827e5d
--- a/engine/src/FeedEngine.cpp	Sun Apr 04 16:23:10 2010 +0100
+++ b/engine/src/FeedEngine.cpp	Sun Apr 04 18:06:31 2010 +0100
@@ -278,9 +278,10 @@
 		}
 	}
 	
-	TBool isShowAdded = iPodcastModel.ShowEngine().AddShowL(aItem);
+	TRAPD(err, iPodcastModel.ShowEngine().AddShowL(aItem));
 
-	if (aItem.PlayState() == ENeverPlayed && isShowAdded && iPodcastModel.SettingsEngine().DownloadAutomatically()) 
+	if (err == KErrNone && aItem.PlayState() == ENeverPlayed && 
+			iPodcastModel.SettingsEngine().DownloadAutomatically()) 
 		{
 		iPodcastModel.ShowEngine().AddDownloadL(aItem);
 		}	
@@ -576,7 +577,7 @@
 							}
 						else
 							{
-							iPodcastModel.ShowEngine().DeleteOldShowsByFeed(iActiveFeed->Uid());
+							iPodcastModel.ShowEngine().DeleteOldShowsByFeedL(iActiveFeed->Uid());
 							}
 	
 						// delete the downloaded XML file as it is no longer needed