application/src/PodcastShowsView.cpp
changeset 99 46baf9a7cadd
parent 98 5f9e7e14eb11
child 100 eefed4bda2e2
--- a/application/src/PodcastShowsView.cpp	Wed May 26 13:13:30 2010 +0100
+++ b/application/src/PodcastShowsView.cpp	Wed May 26 15:30:38 2010 +0100
@@ -338,8 +338,16 @@
 					((CPodcastAppUi*)AppUi())->SetActiveTab(KTabIdQueue);
 					break;
 				case EDownloaded:
-					iPodcastModel.PlayPausePodcastL(showInfo, ETrue);
+					{
+					TRAPD(err, iPodcastModel.PlayPausePodcastL(showInfo, ETrue));
+					if (err != KErrNone)
+						{
+						HBufC *error = iEikonEnv->AllocReadResourceLC(R_ERROR_PLAYBACK_FAILED);
+						ShowErrorMessageL(*error);
+						CleanupStack::PopAndDestroy(error);
+						}
 					UpdateListboxItemsL();
+					}
 					break;
 				default:
 					break;