fixed bug that wrong channel was shown in header of whatson if entering from whatsonnow

This commit is contained in:
louis 2014-12-19 15:05:26 +01:00
parent 84756db208
commit a443d53e85
2 changed files with 4 additions and 2 deletions

View File

@ -112,4 +112,6 @@ Version 0.1.0
- fixed display of color buttons in detailed views
- fixed possible Nullpointer access in displaymenurootview
- added currentschedule viewelement in displaymenumain
- added currentschedule viewelement in displaymenumain
- fixed bug that wrong channel was shown in header of whatson
if entering from whatsonnow

View File

@ -52,7 +52,7 @@ private:
public:
cDisplayMenuSchedulesView(cTemplateView *tmplView, eMenuCategory menuCat, bool menuInit);
virtual ~cDisplayMenuSchedulesView();
void SetChannel(const cChannel *channel) { if (!this->channel) this->channel = channel; };
void SetChannel(const cChannel *channel) { if (channel) this->channel = channel; };
const cChannel *GetChannel(void) { return channel; };
bool DrawHeader(void);
};