# HG changeset patch # User Sebastian Brannstrom # Date 1288011819 -3600 # Node ID 757e84a30b9aa370ae5ebbd71c4f409d1ed40f8f # Parent e6a88732eb8fe62cd3c6bb3cf1d543110fb5634d Added selective availability of the mark all played command diff -r e6a88732eb8f -r 757e84a30b9a application/src/PodcastShowsView.cpp --- a/application/src/PodcastShowsView.cpp Mon Oct 25 14:03:07 2010 +0100 +++ b/application/src/PodcastShowsView.cpp Mon Oct 25 14:03:39 2010 +0100 @@ -653,8 +653,22 @@ { if(aResourceId == R_PODCAST_SHOWSVIEW_MENU) { + TBool showMarkAllPlayed = EFalse; + for (int i=0;iPlayState() == ENeverPlayed) + { + showMarkAllPlayed = ETrue; + break; + } + + } + TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid(); - aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState); + aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState || !showMarkAllPlayed); + + } }