summaryrefslogtreecommitdiff
path: root/menu_templateedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu_templateedit.c')
-rw-r--r--menu_templateedit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/menu_templateedit.c b/menu_templateedit.c
index 9e2edda..20278b0 100644
--- a/menu_templateedit.c
+++ b/menu_templateedit.c
@@ -188,8 +188,7 @@ eOSState cMenuEditTemplate::ProcessKey(eKeys Key)
if (data.useChannel==1)
{
LOCK_CHANNELS_READ;
- const cChannels *vdrchannels = Channels;
- const cChannel *ch = vdrchannels->GetByNumber(channelMin);
+ const cChannel *ch = Channels->GetByNumber(channelMin);
if (ch)
data.channelMin = ch;
else
@@ -197,7 +196,7 @@ eOSState cMenuEditTemplate::ProcessKey(eKeys Key)
ERROR(tr("*** Invalid Channel ***"));
break;
}
- ch = vdrchannels->GetByNumber(channelMax);
+ ch = Channels->GetByNumber(channelMax);
if (ch)
data.channelMax = ch;
else