diff -r f5af16df2425 -r cf14797d0023 application/src/PodcastFeedView.cpp --- a/application/src/PodcastFeedView.cpp Thu Oct 28 23:32:49 2010 +0100 +++ b/application/src/PodcastFeedView.cpp Fri Oct 29 00:12:35 2010 +0100 @@ -509,31 +509,6 @@ iPodcastModel.FeedEngine().CancelUpdateAllFeeds(); } }break; - case EAknSoftkeyExit: - { - RShowInfoArray dlQueue; - iPodcastModel.ShowEngine().GetShowsDownloadingL(dlQueue); - TUint queueCount = dlQueue.Count(); - dlQueue.ResetAndDestroy(); - dlQueue.Close(); - - if (queueCount > 0 && !iPodcastModel.SettingsEngine().DownloadSuspended()) - { - TBuf message; - iEikonEnv->ReadResourceL(message, R_EXIT_SHOWS_DOWNLOADING); - if(ShowQueryMessageL(message)) - { - // pass it on to AppUi, which will exit for us - CPodcastListView::HandleCommandL(aCommand); - } - } - else - { - // nothing in queue, or downloading suspended - CPodcastListView::HandleCommandL(aCommand); - } - } - break; default: CPodcastListView::HandleCommandL(aCommand); break; @@ -876,10 +851,14 @@ void CPodcastFeedView::CheckConfirmExit() { + DP("CPodcastFeedView::CheckConfirmExit"); RShowInfoArray showsDownloading; iPodcastModel.ShowEngine().GetShowsDownloadingL(showsDownloading); + TUint count = showsDownloading.Count(); + showsDownloading.ResetAndDestroy(); + showsDownloading.Close(); - if (showsDownloading.Count() > 0 && !iPodcastModel.SettingsEngine().DownloadSuspended()) + if (count > 0 && !iPodcastModel.SettingsEngine().DownloadSuspended()) { TBuf<256> msg; iEikonEnv->ReadResourceL(msg, R_EXIT_SHOWS_DOWNLOADING); @@ -947,6 +926,7 @@ } else { + iToolbar->SetToolbarVisibility(EFalse); AppUi()->ActivateLocalViewL(KUidPodcastSearchViewID, TUid::Uid(0), KNullDesC8()); } iOpmlState = EOpmlIdle;