summaryrefslogtreecommitdiff
path: root/menu_switchtimers.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu_switchtimers.c')
-rw-r--r--menu_switchtimers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/menu_switchtimers.c b/menu_switchtimers.c
index 59e9217..ab14c1f 100644
--- a/menu_switchtimers.c
+++ b/menu_switchtimers.c
@@ -135,8 +135,7 @@ void cMenuSwitchTimerItem::Set()
strftime(datebuf, sizeof(datebuf), "%d.%m", tm);
LOCK_CHANNELS_READ;
- const cChannels *vdrchannels = Channels;
- const cChannel* channel = vdrchannels->GetByChannelID(switchTimer->channelID,true,true);
+ const cChannel* channel = Channels->GetByChannelID(switchTimer->channelID,true,true);
msprintf(&buffer, "%s\t%d\t%s\t%s\t%d\'\t%s~%s", switchTimer->mode==1?"":">", channel?channel->Number():-1, datebuf, TIMESTRING(startTime), switchTimer->switchMinsBefore, event->Title()?event->Title():"", event->ShortText()?event->ShortText():"");
SetText(buffer, false);