From 88db59f61ac47bced386f1c991aa21e0592fdb13 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 29 Nov 2002 14:19:08 +0100 Subject: No longer displaying channel group delimiters without text --- channels.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'channels.c') diff --git a/channels.c b/channels.c index b69e4549..1e3d9c78 100644 --- a/channels.c +++ b/channels.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 1.10 2002/11/24 20:09:42 kls Exp $ + * $Id: channels.c 1.11 2002/11/29 14:10:46 kls Exp $ */ #include "channels.h" @@ -386,7 +386,7 @@ bool cChannels::Load(const char *FileName, bool AllowComments) int cChannels::GetNextGroup(int Idx) { cChannel *channel = Get(++Idx); - while (channel && !channel->GroupSep()) + while (channel && !(channel->GroupSep() && *channel->Name())) channel = Get(++Idx); return channel ? Idx : -1; } @@ -394,7 +394,7 @@ int cChannels::GetNextGroup(int Idx) int cChannels::GetPrevGroup(int Idx) { cChannel *channel = Get(--Idx); - while (channel && !channel->GroupSep()) + while (channel && !(channel->GroupSep() && *channel->Name())) channel = Get(--Idx); return channel ? Idx : -1; } -- cgit v1.2.3