summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-07-14 12:15:00 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-07-14 12:15:00 +0200
commit06761bf1577e2494730eb27f9da26369169580d1 (patch)
treedcde66f831b4d042aa5987e38a5d964559960963 /channels.c
parent45d261fb7448daed79b9873e0929386dfee0445f (diff)
downloadvdr-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
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/channels.c b/channels.c
index 1136cc52..05f8cdb1 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 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;