application/src/PodcastShowsView.cpp
branchsymbian1
changeset 377 684802056d6f
parent 373 f5de49b27caf
child 384 004e149c6f0b
--- a/application/src/PodcastShowsView.cpp	Fri Nov 19 01:27:00 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Fri Nov 19 01:37:53 2010 +0000
@@ -983,9 +983,21 @@
 			info->SetDownloadState(ENotDownloaded);
 			info->SetPlayState(EPlayed);
 			iPodcastModel.ShowEngine().UpdateShowL(*info);
-			
-			UpdateShowItemDataL(iPodcastModel.ActiveShowList()[index], index, 0);
-			iListContainer->Listbox()->DrawItem(index);					
+		
+			if (iShowNewShows)
+				{
+				UpdateListboxItemsL();
+
+				if (index > 0)
+					{
+					iListContainer->Listbox()->SetCurrentItemIndex(index - 1);
+					}
+				}
+			else
+				{
+				UpdateShowItemDataL(iPodcastModel.ActiveShowList()[index], index, 0);
+				iListContainer->Listbox()->DrawItem(index);
+				}
 			}
 		}
 	}