engine/src/ShowEngine.cpp
changeset 122 dd31cab34e27
parent 118 b03018fb3418
child 126 c2f1ea38ec70
--- 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();