Added query before marking all shows played in new list symbian1
authorSebastian Brannstrom <sebastianb@symbian.org>
Tue, 16 Nov 2010 00:28:12 +0000
branchsymbian1
changeset 358 d2ce95126703
parent 357 2a68d0523020
child 359 16cc6373c043
Added query before marking all shows played in new list
application/src/PodcastShowsView.cpp
engine/src/FeedEngine.cpp
--- a/application/src/PodcastShowsView.cpp	Tue Nov 16 00:03:16 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Tue Nov 16 00:28:12 2010 +0000
@@ -656,6 +656,14 @@
 			HandleSetShowPlayedL(EFalse);
 			break;
 		case EPodcastMarkAllPlayed:
+			if (iShowNewShows) {
+				TBuf<KMaxMessageLength> msg;
+				iEikonEnv->ReadResourceL(msg, R_MARK_ALL_OLD_QUERY);
+				if (!ShowQueryMessageL(msg))
+					{
+					break;
+					}
+			}
 			iPodcastModel.MarkSelectionPlayedL();
 			UpdateListboxItemsL();
 			break;
--- a/engine/src/FeedEngine.cpp	Tue Nov 16 00:03:16 2010 +0000
+++ b/engine/src/FeedEngine.cpp	Tue Nov 16 00:28:12 2010 +0000
@@ -393,7 +393,7 @@
 	{
 	DP2("CFeedEngine::DBAddFeed BEGIN, title=%S, URL=%S", &aItem.Title(), &aItem.Url());
 	
-	CFeedInfo *info;
+	CFeedInfo *info = NULL;
 	
 	TRAPD(err, info = DBGetFeedInfoByUidL(aItem.Uid()));