Fix for bug in handling of automatic deletes symbian1
authorSebastian Brannstrom <sebastianb@symbian.org>
Tue, 16 Nov 2010 12:41:58 +0000
branchsymbian1
changeset 371 5077ef63bce2
parent 366 f015466e6642
child 372 ad9eb3eed056
Fix for bug in handling of automatic deletes
engine/src/ShowEngine.cpp
--- a/engine/src/ShowEngine.cpp	Tue Nov 16 12:21:47 2010 +0000
+++ b/engine/src/ShowEngine.cpp	Tue Nov 16 12:41:58 2010 +0000
@@ -1668,10 +1668,13 @@
 			break;
 		}
 	
-	TTime deleteDate;
-	deleteDate.HomeTime();
-	deleteDate += daysAhead;
-	aShow->SetDeleteDate(deleteDate);
+	if (daysAhead.Int() > 0)
+		{
+		TTime deleteDate;
+		deleteDate.HomeTime();
+		deleteDate += daysAhead;
+		aShow->SetDeleteDate(deleteDate);
+		}
 	
 	UpdateShowL(*aShow);
 	DP("CShowEngine::PostPlayHandling END");