summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-11-22 11:48:54 +0100
committerlouis <louis.braun@gmx.de>2014-11-22 11:48:54 +0100
commit77368ebbd181ceb3b25545d6331f30d72900fa70 (patch)
tree91064f5885cd211293d619df68483b097087f961
parentbe0aa490686ee5e9cf72393d9f73a1b59cc05dd8 (diff)
downloadvdr-plugin-skindesigner-77368ebbd181ceb3b25545d6331f30d72900fa70.tar.gz
vdr-plugin-skindesigner-77368ebbd181ceb3b25545d6331f30d72900fa70.tar.bz2
fixed Bug that channel info was not shown when displaying reruns with epgsearch
-rw-r--r--HISTORY2
-rw-r--r--displaymenu.c2
-rw-r--r--views/displaymenuview.h2
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);
};