summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorManuel Reimer <manuel.reimer@gmx.de>2014-11-02 13:41:30 +0100
committerManuel Reimer <manuel.reimer@gmx.de>2014-11-02 13:41:30 +0100
commitded6119b3b60eb2f36bbc1df8d6050c49f9e2a1f (patch)
tree11a1118233ebfe96cc034ba7e9914b379f85cfc1 /displaymenu.c
parente07e56a3faced2f2ef7459cc13c2bda6f65f68ba (diff)
parentef4502cc02b4a1b287b6710826f04f953fd4691b (diff)
downloadvdr-plugin-skindesigner-ded6119b3b60eb2f36bbc1df8d6050c49f9e2a1f.tar.gz
vdr-plugin-skindesigner-ded6119b3b60eb2f36bbc1df8d6050c49f9e2a1f.tar.bz2
Merge branch 'master' of git://projects.vdr-developer.org/vdr-plugin-skindesigner
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 9f0e97e..d9ec692 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -81,17 +81,18 @@ bool cSDDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Current,
return false;
if (config.blockFlush)
rootView->LockFlush();
- if (Current) {
- if (Channel) {
- rootView->SetChannel(Channel);
- } else if (Event) {
- rootView->SetChannel(Channels.GetByChannelID(Event->ChannelID()));
- }
+ const cChannel *channel = Channel;
+ if (!channel) {
+ channel = rootView->GetChannel();
+ }
+ if (!channel && Event) {
+ channel = Channels.GetByChannelID(Event->ChannelID());
+ rootView->SetChannel(channel);
}
cDisplayMenuListView *list = rootView->GetListView();
if (!list)
return false;
- list->AddSchedulesMenuItem(Index, Event, Channel, TimerMatch, MenuCategory(), Current, Selectable);
+ list->AddSchedulesMenuItem(Index, Event, channel, TimerMatch, MenuCategory(), Current, Selectable);
if (state == vsIdle)
state = vsMenuUpdate;
return true;