summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-20 14:22:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-20 14:22:09 +0200
commitff127786d092c2235ec5f93960038d2d38182099 (patch)
treeb0785f2d71103918564437ef721c9ae9a1554724 /menu.c
parentbff56bb85073ee25a1752915f047aa303f0527b4 (diff)
downloadvdr-ff127786d092c2235ec5f93960038d2d38182099.tar.gz
vdr-ff127786d092c2235ec5f93960038d2d38182099.tar.bz2
Fixed log message when editing a channel
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index 18cf0500..c936fc92 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.219 2002/10/20 12:03:13 kls Exp $
+ * $Id: menu.c 1.220 2002/10/20 14:22:09 kls Exp $
*/
#include "menu.h"
@@ -695,8 +695,12 @@ eOSState cMenuChannels::Edit(void)
{
if (HasSubMenu() || Count() == 0)
return osContinue;
- isyslog("editing channel %d", Current() + 1);
- return AddSubMenu(new cMenuEditChannel(Current()));
+ cChannel *ch = Channels.Get(Current());
+ if (ch) {
+ isyslog("editing channel %d", ch->Number());
+ return AddSubMenu(new cMenuEditChannel(Current()));
+ }
+ return osContinue;
}
eOSState cMenuChannels::New(void)