# HG changeset patch # User Sebastian Brannstrom # Date 1289911318 0 # Node ID 5077ef63bce23382c73b198e500655b55dfebccb # Parent f015466e664252914a251a2e415de90c02e04546 Fix for bug in handling of automatic deletes diff -r f015466e6642 -r 5077ef63bce2 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");