mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed displaying the group separators in the channel display
This commit is contained in:
8
menu.c
8
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);
|
||||
|
Reference in New Issue
Block a user