diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-07-14 12:15:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-07-14 12:15:00 +0200 |
commit | 06761bf1577e2494730eb27f9da26369169580d1 (patch) | |
tree | dcde66f831b4d042aa5987e38a5d964559960963 | |
parent | 45d261fb7448daed79b9873e0929386dfee0445f (diff) | |
download | vdr-06761bf1577e2494730eb27f9da26369169580d1.tar.gz vdr-06761bf1577e2494730eb27f9da26369169580d1.tar.bz2 |
Fixed handling group separators when showing channel names with source; initializing channel names with source when setting transponder data
-rw-r--r-- | channels.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 2.23 2012/06/17 11:53:10 kls Exp $ + * $Id: channels.c 2.24 2012/07/14 12:15:00 kls Exp $ */ #include "channels.h" @@ -120,7 +120,7 @@ cChannel& cChannel::operator= (const cChannel &Channel) const char *cChannel::Name(void) const { - if (Setup.ShowChannelNamesWithSource) { + if (Setup.ShowChannelNamesWithSource && !groupSep) { if (isempty(nameSource)) nameSource = cString::sprintf("%s (%c)", name, cSource::ToChar(source)); return nameSource; @@ -132,7 +132,7 @@ const char *cChannel::ShortName(bool OrName) const { if (OrName && isempty(shortName)) return Name(); - if (Setup.ShowChannelNamesWithSource) { + if (Setup.ShowChannelNamesWithSource && !groupSep) { if (isempty(shortNameSource)) shortNameSource = cString::sprintf("%s (%c)", shortName, cSource::ToChar(source)); return shortNameSource; @@ -217,6 +217,8 @@ bool cChannel::SetTransponderData(int Source, int Frequency, int Srate, const ch srate = Srate; parameters = Parameters; schedule = NULL; + nameSource = NULL; + shortNameSource = NULL; if (Number() && !Quiet) { dsyslog("changing transponder data of channel %d from %s to %s", Number(), *OldTransponderData, *TransponderDataToString()); modification |= CHANNELMOD_TRANSP; |