summaryrefslogtreecommitdiff
path: root/logo.c
diff options
context:
space:
mode:
Diffstat (limited to 'logo.c')
-rw-r--r--logo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/logo.c b/logo.c
index e8e17bc..1427f6d 100644
--- a/logo.c
+++ b/logo.c
@@ -96,8 +96,8 @@ bool cEnigmaLogoCache::LoadChannelLogo(const cChannel *Channel)
return false;
bool fFoundLogo = false;
- char *strChannelID = EnigmaConfig.useChannelId ? strdup(*Channel->GetChannelID().ToString()) : NULL;
- const char *logoname = EnigmaConfig.useChannelId ? strChannelID : Channel->Name();
+ char *strChannelID = EnigmaConfig.useChannelId && !Channel->GroupSep() ? strdup(*Channel->GetChannelID().ToString()) : NULL;
+ const char *logoname = EnigmaConfig.useChannelId && !Channel->GroupSep() ? strChannelID : Channel->Name();
if (logoname) {
char *filename = (char *)malloc(strlen(logoname) + 20 /* should be enough for folder */);
if (filename == NULL) return false;