diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-30 09:10:39 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-30 09:10:39 +0100 |
commit | 4c304467ba8e8ff7d36d4b5b06b3e26ddf6456a7 (patch) | |
tree | cdc11a2778b613b3baa60cd8f938d53394f372e1 /menu.c | |
parent | 6a9502ab1789ca438ebd598c004818303168e604 (diff) | |
download | vdr-4c304467ba8e8ff7d36d4b5b06b3e26ddf6456a7.tar.gz vdr-4c304467ba8e8ff7d36d4b5b06b3e26ddf6456a7.tar.bz2 |
Fixed clearing non-editable members in the channel editor
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 3.17 2014/01/29 10:41:10 kls Exp $ + * $Id: menu.c 3.18 2014/01/30 09:04:06 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(); |