application/src/PodcastShowsView.cpp
changeset 33 64ed1227e68d
parent 32 26a3f2dfba08
child 34 a6046405f1aa
equal deleted inserted replaced
32:26a3f2dfba08 33:64ed1227e68d
   568 			HandleDeleteShow();
   568 			HandleDeleteShow();
   569 			break;
   569 			break;
   570 		case EPodcastDownloadShow:
   570 		case EPodcastDownloadShow:
   571 			{
   571 			{
   572 			TInt index = iListContainer->Listbox()->CurrentItemIndex();
   572 			TInt index = iListContainer->Listbox()->CurrentItemIndex();
       
   573 			
   573 			if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
   574 			if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
   574 				{
   575 				{
   575 				iPodcastModel.ShowEngine().AddDownloadL(*iPodcastModel.ActiveShowList()[index]);
   576 				iPodcastModel.ShowEngine().AddDownloadL(*iPodcastModel.ActiveShowList()[index]);
   576 				UpdateShowItemL(iPodcastModel.ActiveShowList()[index]->Uid(),-1);
   577 				UpdateShowItemL(iPodcastModel.ActiveShowList()[index]->Uid(),-1);
   577 				}
   578 				}