Fix for auto delete symbian1
authorSebastian Brannstrom <sebastianb@symbian.org>
Mon, 22 Nov 2010 12:55:47 +0000
branchsymbian1
changeset 385 f372a154ba57
parent 384 004e149c6f0b
child 386 1516bc02b389
Fix for auto delete
application/src/PodcastFeedView.cpp
engine/src/ShowEngine.cpp
--- a/application/src/PodcastFeedView.cpp	Mon Nov 22 12:55:34 2010 +0000
+++ b/application/src/PodcastFeedView.cpp	Mon Nov 22 12:55:47 2010 +0000
@@ -341,7 +341,7 @@
 
 void CPodcastFeedView::FormatFeedInfoListBoxItemL(CFeedInfo& aFeedInfo, TBool aIsUpdating)
 	{
-	DP("CPodcastFeedView::FormatFeedInfoListBoxItemL BEGIN");
+//	DP("CPodcastFeedView::FormatFeedInfoListBoxItemL BEGIN");
 	TBuf<KMaxShortDateFormatSpec*2> updatedDate;
 	TBuf<KMaxUnplayedFeedsLength> unplayedShows;
 	TUint unplayedCount = 0;
@@ -393,7 +393,7 @@
 		}
 	
 	iconIndex = iFeedIdForIconArray.Find(aFeedInfo.Uid());
-	DP1("    iconIndex = %d", iconIndex);
+//	DP1("    iconIndex = %d", iconIndex);
 	if(iconIndex == KErrNotFound && aFeedInfo.FeedIcon() != NULL && aFeedInfo.ImageFileName().Length() > 0 && 
 			aFeedInfo.FeedIcon()->SizeInPixels().iHeight > 0 &&
 			aFeedInfo.FeedIcon()->SizeInPixels().iWidth > 0)
@@ -422,7 +422,7 @@
 		
 	iListboxFormatbuffer.Format(KFeedFormatPortrait(), iconIndex, &(aFeedInfo.Title()), &updatedDate,  &unplayedShows);
 	iListboxFormatbufferShort.Format(KFeedFormatLandscape(), iconIndex, &(aFeedInfo.Title()));
-	DP("CPodcastFeedView::FormatFeedInfoListBoxItemL END");
+//	DP("CPodcastFeedView::FormatFeedInfoListBoxItemL END");
 	}
 
 void CPodcastFeedView::ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& /*aPodcastModel*/)
--- a/engine/src/ShowEngine.cpp	Mon Nov 22 12:55:34 2010 +0000
+++ b/engine/src/ShowEngine.cpp	Mon Nov 22 12:55:47 2010 +0000
@@ -1697,7 +1697,7 @@
 		deleteDate.HomeTime();
 		deleteDate += daysAhead;
 		aShow->SetDeleteDate(deleteDate);
-		DP2("Setting show %S to be deleted on the %d th", &aShow->Title(), deleteDate.DayNoInMonth());
+		DP2("Setting show %S to be deleted on the %d th", &aShow->Title(), deleteDate.DayNoInMonth()+1);
 		}
 	
 	UpdateShowL(*aShow);