diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-12 13:21:42 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-08-12 13:21:42 +0200 |
commit | b863d9a7024fdc4d31571565e3afe646dedffa9f (patch) | |
tree | 54fd7a6f8a97d34b00c4f5840d450d615c609763 /menuitems.c | |
parent | 2c2ed53adfd59ffeaf0b1773b764f034ae38f826 (diff) | |
download | vdr-b863d9a7024fdc4d31571565e3afe646dedffa9f.tar.gz vdr-b863d9a7024fdc4d31571565e3afe646dedffa9f.tar.bz2 |
Fixed handling the channelID in cMenuEditChanItem
Diffstat (limited to 'menuitems.c')
-rw-r--r-- | menuitems.c | 9 |
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) |