summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-02-13 13:36:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-02-13 13:36:52 +0100
commit30d262fa8871771ceca38828f52d8441c4d62743 (patch)
tree2e882ff97c7bd2b99f3ddfea05480561bb5d2b51 /menu.c
parentf379b56d0e2e2598c44285c7ccf71128d356855b (diff)
downloadvdr-30d262fa8871771ceca38828f52d8441c4d62743.tar.gz
vdr-30d262fa8871771ceca38828f52d8441c4d62743.tar.bz2
Fixed editing and creating new channels
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 6a7907f7..2ffa6d9f 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.284 2004/02/08 15:06:42 kls Exp $
+ * $Id: menu.c 1.285 2004/02/13 13:23:07 kls Exp $
*/
#include "menu.h"
@@ -557,8 +557,12 @@ cMenuEditChannel::cMenuEditChannel(cChannel *Channel, bool New)
channel = Channel;
if (channel) {
data = *channel;
- if (New)
+ if (New) {
channel = NULL;
+ data.nid = 0;
+ data.tid = 0;
+ data.rid = 0;
+ }
Setup();
}
}
@@ -583,7 +587,7 @@ void cMenuEditChannel::Setup(void)
Add(new cMenuEditIntItem( tr("Dpid2"), &data.dpids[1], 0, 0x1FFF));
Add(new cMenuEditIntItem( tr("Tpid"), &data.tpid, 0, 0x1FFF));
Add(new cMenuEditCaItem( tr("CA"), &data.caids[0], true));//XXX
- Add(new cMenuEditIntItem( tr("Sid"), &data.sid, 0));
+ Add(new cMenuEditIntItem( tr("Sid"), &data.sid, 1, 0xFFFF));
/* XXX not yet used
Add(new cMenuEditIntItem( tr("Nid"), &data.nid, 0));
Add(new cMenuEditIntItem( tr("Tid"), &data.tid, 0));