summaryrefslogtreecommitdiff
path: root/menuitems.c
diff options
context:
space:
mode:
Diffstat (limited to 'menuitems.c')
-rw-r--r--menuitems.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/menuitems.c b/menuitems.c
index bc04e72c..e7797d6e 100644
--- a/menuitems.c
+++ b/menuitems.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menuitems.c 2.9 2011/06/13 14:48:41 kls Exp $
+ * $Id: menuitems.c 2.10 2011/08/12 13:19:40 kls Exp $
*/
#include "menuitems.h"
@@ -736,9 +736,14 @@ void cMenuEditChanItem::Set(void)
cChannel *channel = Channels.GetByNumber(*value);
snprintf(buf, sizeof(buf), "%d %s", *value, channel ? channel->Name() : "");
SetValue(buf);
+ if (channelID)
+ *channelID = channel->GetChannelID().ToString();
}
- else if (noneString)
+ else if (noneString) {
SetValue(noneString);
+ if (channelID)
+ *channelID = "";
+ }
}
eOSState cMenuEditChanItem::ProcessKey(eKeys Key)