summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-01-30 09:14:17 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-01-30 09:14:17 +0100
commit5b65ff5b37de31bdeea3e9fadeaee1a3616e5a5d (patch)
tree09c53dee3e4fa0cce5e825f40c382b87b3669401 /menu.c
parentc1ddb5240529ea8b3388808bce682248a07a2dd5 (diff)
downloadvdr-5b65ff5b37de31bdeea3e9fadeaee1a3616e5a5d.tar.gz
vdr-5b65ff5b37de31bdeea3e9fadeaee1a3616e5a5d.tar.bz2
Fixed clearing non-editable members in the channel editor
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 6935838e..7018741d 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 2.82.1.6 2014/01/29 10:48:02 kls Exp $
+ * $Id: menu.c 2.82.1.7 2014/01/30 09:11:46 kls Exp $
*/
#include "menu.h"
@@ -181,9 +181,13 @@ cMenuEditChannel::cMenuEditChannel(cChannel *Channel, bool New)
strn0cpy(name, data.name, sizeof(name));
if (New) {
channel = NULL;
+ // clear non-editable members:
data.nid = 0;
data.tid = 0;
data.rid = 0;
+ *data.shortName = 0;
+ *data.provider = 0;
+ *data.portalName = 0;
}
}
Setup();