Fix for bug 2092
authorteknolog
Mon, 26 Apr 2010 22:11:45 +0100
changeset 89 dd31cab34e27
parent 88 1cc7501102a8
child 90 50edf2be6f0d
Fix for bug 2092
engine/src/ShowEngine.cpp
--- a/engine/src/ShowEngine.cpp	Sat Apr 24 22:26:43 2010 +0100
+++ b/engine/src/ShowEngine.cpp	Mon Apr 26 22:11:45 2010 +0100
@@ -127,6 +127,10 @@
 		{
 		DP("CShowEngine::RemoveDownload\t This is the active download, we suspend downloading");
 		SuspendDownloads();
+		
+		// partial downloads should be removed
+		BaflUtils::DeleteFile(iPodcastModel.FsSession(), iShowDownloading->FileName());
+
 		resumeAfterRemove = ETrue;
 		}
 
@@ -140,12 +144,6 @@
 	
 	DBRemoveDownloadL(aUid);
 
-	// partial downloads should be removed
-	if (iShowDownloading)
-		{
-		BaflUtils::DeleteFile(iPodcastModel.FsSession(), iShowDownloading->FileName());
-		}
-
 	if (resumeAfterRemove)
 		{
 		ResumeDownloadsL();