diff options
| author | louis <louis.braun@gmx.de> | 2015-01-10 10:10:31 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-01-10 10:10:31 +0100 |
| commit | 74febbfe86b63ac894b40f1d6c5fb2de8c6973b5 (patch) | |
| tree | 93f7ae2924f4d847db955b1593d0df990200a647 /views/displaymenuitemcurrentview.c | |
| parent | abcb357b25051bdbcf65c392ad85a3de0bd22b3c (diff) | |
| download | vdr-plugin-skindesigner-74febbfe86b63ac894b40f1d6c5fb2de8c6973b5.tar.gz vdr-plugin-skindesigner-74febbfe86b63ac894b40f1d6c5fb2de8c6973b5.tar.bz2 | |
fixed bug that EPGSearch Favorites Menu was not displayed correctly
Diffstat (limited to 'views/displaymenuitemcurrentview.c')
| -rw-r--r-- | views/displaymenuitemcurrentview.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/displaymenuitemcurrentview.c b/views/displaymenuitemcurrentview.c index de84e8b..b60d4ef 100644 --- a/views/displaymenuitemcurrentview.c +++ b/views/displaymenuitemcurrentview.c @@ -104,12 +104,13 @@ void cDisplayMenuItemCurrentMainView::Action(void) { * cDisplayMenuItemCurrentSchedulesView *************************************************************/ -cDisplayMenuItemCurrentSchedulesView::cDisplayMenuItemCurrentSchedulesView(cTemplateViewElement *tmplCurrent, const cEvent *event, const cChannel *channel, eTimerMatch timerMatch, eMenuCategory cat) +cDisplayMenuItemCurrentSchedulesView::cDisplayMenuItemCurrentSchedulesView(cTemplateViewElement *tmplCurrent, const cEvent *event, const cChannel *channel, eTimerMatch timerMatch, eMenuCategory cat, bool isEpgSearchFav) : cDisplayMenuItemCurrentView(tmplCurrent) { this->event = event; this->channel = channel; this->timerMatch = timerMatch; this->cat = cat; + this->isEpgSearchFav = isEpgSearchFav; } cDisplayMenuItemCurrentSchedulesView::~cDisplayMenuItemCurrentSchedulesView() { @@ -120,9 +121,10 @@ void cDisplayMenuItemCurrentSchedulesView::Prepare(void) { void cDisplayMenuItemCurrentSchedulesView::Render(void) { - intTokens.insert(pair<string,int>("whatson", (cat == mcSchedule) ? true: false)); + intTokens.insert(pair<string,int>("whatson", (cat == mcSchedule)&&(!isEpgSearchFav) ? true: false)); intTokens.insert(pair<string,int>("whatsonnow", (cat == mcScheduleNow) ? true: false)); intTokens.insert(pair<string,int>("whatsonnext", (cat == mcScheduleNext) ? true: false)); + intTokens.insert(pair<string,int>("whatsonfavorites", isEpgSearchFav ? true: false)); if (timerMatch == tmFull) { intTokens.insert(pair<string,int>("timerpartitial", false)); intTokens.insert(pair<string,int>("timerfull", true)); |
