# HG changeset patch # User Sebastian Brannstrom # Date 1289900147 0 # Node ID 861a25b8306b5e5347c8081d16de5d855618a2bf # Parent e2fa17cfc987805dba659f5bd5fa40d9a85b08ce Fix for mark all old visibility diff -r e2fa17cfc987 -r 861a25b8306b application/src/PodcastShowsView.cpp --- a/application/src/PodcastShowsView.cpp Tue Nov 16 09:35:25 2010 +0000 +++ b/application/src/PodcastShowsView.cpp Tue Nov 16 09:35:47 2010 +0000 @@ -478,7 +478,7 @@ { if (aShowInfo.ShowSize() > 0) { - TInt showSize = aShowInfo.ShowSize() >= aSizeDownloaded ? aShowInfo.ShowSize() : aSizeDownloaded; + TUint showSize = aShowInfo.ShowSize() >= (TUint) aSizeDownloaded ? aShowInfo.ShowSize() : (TUint) aSizeDownloaded; infoSize.Format(KSizeDownloadingOf(), ((float) aSizeDownloaded / (float) KSizeMb), ((float) showSize / (float)KSizeMb)); } @@ -724,22 +724,22 @@ void CPodcastShowsView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) { - if(aResourceId == R_PODCAST_SHOWSVIEW_MENU && !iShowNewShows) + if(aResourceId == R_PODCAST_SHOWSVIEW_MENU) { - TBool showMarkAllPlayed = EFalse; + TBool hideMarkAllPlayed = ETrue; for (int i=0;iPlayState() == ENeverPlayed) { - showMarkAllPlayed = ETrue; + hideMarkAllPlayed = EFalse; break; } } TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid(); - aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState || !showMarkAllPlayed); + aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState || hideMarkAllPlayed || iShowNewShows); } }