summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-01-11 14:46:33 +0100
committerlouis <louis.braun@gmx.de>2015-01-11 14:46:33 +0100
commit5d86c45bc679974079842913b81785a4fbfb3305 (patch)
tree019dad87de4006b0cc140c7104342596ba12a368 /views
parent74febbfe86b63ac894b40f1d6c5fb2de8c6973b5 (diff)
downloadvdr-plugin-skindesigner-5d86c45bc679974079842913b81785a4fbfb3305.tar.gz
vdr-plugin-skindesigner-5d86c45bc679974079842913b81785a4fbfb3305.tar.bz2
fixed again display of channel in schedules header
Diffstat (limited to 'views')
-rw-r--r--views/displaymenurootview.c4
-rw-r--r--views/displaymenuview.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/views/displaymenurootview.c b/views/displaymenurootview.c
index 59910c1..2f3f11d 100644
--- a/views/displaymenurootview.c
+++ b/views/displaymenurootview.c
@@ -324,6 +324,10 @@ void cDisplayMenuRootView::KeyInput(bool up, bool page) {
}
void cDisplayMenuRootView::Clear(void) {
+ if (view) {
+ view->ClearChannel();
+ view->ClearEpgSearchFavorite();
+ }
if (listView) {
listView->Clear();
}
diff --git a/views/displaymenuview.h b/views/displaymenuview.h
index c66ae39..8463301 100644
--- a/views/displaymenuview.h
+++ b/views/displaymenuview.h
@@ -18,7 +18,9 @@ public:
void SetTitle(const char *title) {menuTitle = title; };
virtual void SetChannel(const cChannel *channel) {};
virtual const cChannel *GetChannel(void) { return NULL; };
+ virtual void ClearChannel(void) {};
virtual void SetEpgSearchFavorite(void) {};
+ virtual void ClearEpgSearchFavorite(void) {};
void SetButtonTexts(string *buttonTexts) { this->buttonTexts = buttonTexts; };
bool DrawBackground(void);
virtual bool DrawHeader(void);
@@ -59,7 +61,9 @@ public:
virtual ~cDisplayMenuSchedulesView();
void SetChannel(const cChannel *channel) { if (channel) this->channel = channel; };
const cChannel *GetChannel(void) { return channel; };
+ void ClearChannel(void) { channel = NULL; };
void SetEpgSearchFavorite(void) { isEpgSearchFavoritesMenu = true; };
+ void ClearEpgSearchFavorite(void) { isEpgSearchFavoritesMenu = false; };
bool DrawHeader(void);
};