From c188d8f1900371d8e344f028200dabe15cc81e93 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 13 Jan 2015 09:12:44 +0100 Subject: [PATCH] clearing channel tokens in menu header if no channel is set --- views/displaymenuview.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/views/displaymenuview.c b/views/displaymenuview.c index 1487ce1..1f6c69f 100644 --- a/views/displaymenuview.c +++ b/views/displaymenuview.c @@ -628,6 +628,11 @@ bool cDisplayMenuSchedulesView::DrawHeader(void) { string channelID = *(channel->GetChannelID().ToString()); stringTokens.insert(pair("channelid", channelID)); intTokens.insert(pair("channellogoexists", imgCache->LogoExists(channelID))); + } else { + stringTokens.insert(pair("channelnumber", "")); + stringTokens.insert(pair("channelname", "")); + stringTokens.insert(pair("channelid", "")); + intTokens.insert(pair("channellogoexists", 0)); } bool hasIcon = false; string icon = imgCache->GetIconName(menuTitle, cat);