fixed Bug that channel info was not shown when displaying reruns with epgsearch

This commit is contained in:
louis 2014-11-22 11:48:54 +01:00
parent be0aa49068
commit 77368ebbd1
3 changed files with 4 additions and 2 deletions

View File

@ -91,3 +91,5 @@ Version 0.0.5
Version 0.0.6 Version 0.0.6
- fixed Bug that channel info was not shown when displaying reruns with
epgsearch

View File

@ -100,8 +100,8 @@ bool cSDDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Current,
} }
if (!channel && Event) { if (!channel && Event) {
channel = Channels.GetByChannelID(Event->ChannelID()); channel = Channels.GetByChannelID(Event->ChannelID());
rootView->SetChannel(channel);
} }
rootView->SetChannel(channel);
cDisplayMenuListView *list = rootView->GetListView(); cDisplayMenuListView *list = rootView->GetListView();
if (!list) if (!list)
return false; return false;

View File

@ -51,7 +51,7 @@ private:
public: public:
cDisplayMenuSchedulesView(cTemplateView *tmplView, eMenuCategory menuCat, bool menuInit); cDisplayMenuSchedulesView(cTemplateView *tmplView, eMenuCategory menuCat, bool menuInit);
virtual ~cDisplayMenuSchedulesView(); 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; }; const cChannel *GetChannel(void) { return channel; };
bool DrawHeader(void); bool DrawHeader(void);
}; };