application/src/PodcastAppui.cpp
changeset 49 43e204e6ae2e
parent 48 f8fd68d71cfd
child 50 e7b10d6d7ba3
--- a/application/src/PodcastAppui.cpp	Thu Mar 11 21:45:01 2010 +0000
+++ b/application/src/PodcastAppui.cpp	Fri Mar 12 00:20:10 2010 +0000
@@ -216,14 +216,25 @@
 		{
 		TUid newview = TUid::Uid(0);
 		TUid messageUid = TUid::Uid(0);
-		
-		if (aIndex == KTabIdFeeds) {
-			newview = KUidPodcastFeedViewID;
-		} else if (aIndex == KTabIdQueue) {
+		if (aIndex == KTabIdFeeds) 
+			{
+			if (iFeedView->ViewingShows())
+				{
+				newview = KUidPodcastShowsViewID;
+				}
+			else
+				{
+				newview = KUidPodcastFeedViewID;
+				} 
+			} 
+		else if (aIndex == KTabIdQueue)
+			{
 			newview = KUidPodcastQueueViewID;
-		} else {
+			} 
+		else 
+			{
 			User::Leave(KErrTooBig);
-		}
+			}
 		
 		if(newview.iUid != 0)
 			{