diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-11-29 14:19:08 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-11-29 14:19:08 +0100 |
commit | 88db59f61ac47bced386f1c991aa21e0592fdb13 (patch) | |
tree | d2f7859ce0b60f16bc4896d04d603e9f35b54842 /menu.c | |
parent | 4ab777e98a2d2f0f5c29d63609e28faafe1cde7e (diff) | |
download | vdr-88db59f61ac47bced386f1c991aa21e0592fdb13.tar.gz vdr-88db59f61ac47bced386f1c991aa21e0592fdb13.tar.bz2 |
No longer displaying channel group delimiters without text
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.226 2002/11/24 14:34:41 kls Exp $ + * $Id: menu.c 1.227 2002/11/29 14:06:38 kls Exp $ */ #include "menu.h" @@ -684,15 +684,10 @@ public: cMenuChannels::cMenuChannels(void) :cOsdMenu(tr("Channels"), CHNUMWIDTH) { - //TODO - int i = 0; - cChannel *channel; - int curr = ((channel = Channels.GetByNumber(cDevice::CurrentChannel())) != NULL) ? channel->Index() : -1; - - while ((channel = Channels.Get(i)) != NULL) { - Add(new cMenuChannelItem(channel), i == curr); - i++; - } + for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel)) { + if (!channel->GroupSep() || *channel->Name()) + Add(new cMenuChannelItem(channel), channel->Number() == cDevice::CurrentChannel()); + } SetHelp(tr("Edit"), tr("New"), tr("Delete"), tr("Mark")); } |