summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-11-01 12:18:45 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-11-01 12:18:45 +0100
commit5a418a9efe541cb4902475bda0ebe79da32915aa (patch)
treec99e246dd96bbe098d215d7c4254b80ecb23c650 /menu.c
parent0813564ed600ab022d8e3b8b743dd28d8df507a4 (diff)
downloadvdr-5a418a9efe541cb4902475bda0ebe79da32915aa.tar.gz
vdr-5a418a9efe541cb4902475bda0ebe79da32915aa.tar.bz2
Fixed displaying the group separators in the channel display
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index 0bd24be8..47ad091b 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.221 2002/10/27 14:06:02 kls Exp $
+ * $Id: menu.c 1.222 2002/11/01 12:15:45 kls Exp $
*/
#include "menu.h"
@@ -2378,10 +2378,10 @@ void cDisplayChannel::DisplayChannel(const cChannel *Channel)
char buffer[BufSize];
*buffer = 0;
if (Channel) {
- if (Channel->Number() > 0)
- snprintf(buffer, BufSize, "%d%s %s", Channel->Number(), number ? "-" : "", Channel->Name());
- else if (Channel->Name())
+ if (Channel->GroupSep())
snprintf(buffer, BufSize, "%s", Channel->Name());
+ else
+ snprintf(buffer, BufSize, "%d%s %s", Channel->Number(), number ? "-" : "", Channel->Name());
}
else if (number)
snprintf(buffer, BufSize, "%d-", number);