From 77368ebbd181ceb3b25545d6331f30d72900fa70 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 22 Nov 2014 11:48:54 +0100 Subject: [PATCH] fixed Bug that channel info was not shown when displaying reruns with epgsearch --- HISTORY | 2 ++ displaymenu.c | 2 +- views/displaymenuview.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 2afaa71..e85d68b 100644 --- a/HISTORY +++ b/HISTORY @@ -91,3 +91,5 @@ Version 0.0.5 Version 0.0.6 +- fixed Bug that channel info was not shown when displaying reruns with + epgsearch diff --git a/displaymenu.c b/displaymenu.c index 5ba25a8..fd01f85 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -100,8 +100,8 @@ bool cSDDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Current, } if (!channel && Event) { channel = Channels.GetByChannelID(Event->ChannelID()); - rootView->SetChannel(channel); } + rootView->SetChannel(channel); cDisplayMenuListView *list = rootView->GetListView(); if (!list) return false; diff --git a/views/displaymenuview.h b/views/displaymenuview.h index 3247c76..b9ffb5f 100644 --- a/views/displaymenuview.h +++ b/views/displaymenuview.h @@ -51,7 +51,7 @@ private: public: cDisplayMenuSchedulesView(cTemplateView *tmplView, eMenuCategory menuCat, bool menuInit); virtual ~cDisplayMenuSchedulesView(); - void SetChannel(const cChannel *channel) { this->channel = channel; }; + void SetChannel(const cChannel *channel) { if (!this->channel) this->channel = channel; }; const cChannel *GetChannel(void) { return channel; }; bool DrawHeader(void); };