From cd4ca89f8b5dec057f3e98a108e6d9a2f5e279b3 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 22 Dec 2013 11:03:52 +0100 Subject: [PATCH] fixed channel switching with blue key --- HISTORY | 2 ++ tvguideosd.c | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 6a3586c..3b54c2b 100644 --- a/HISTORY +++ b/HISTORY @@ -86,3 +86,5 @@ Version 1.1.0 (configurable in Makefile) - Added russian and catalan translation - Added slovakian translation +- fixed channel switching with blue key if detailed epg view is opened and + if "close tvguide on channel switch" is configured diff --git a/tvguideosd.c b/tvguideosd.c index 5cccc67..344c625 100644 --- a/tvguideosd.c +++ b/tvguideosd.c @@ -498,8 +498,13 @@ eOSState cTvGuideOsd::ChannelSwitch() { const cChannel *currentChannel = activeGrid->column->getChannel(); if (currentChannel) { cDevice::PrimaryDevice()->SwitchChannel(currentChannel, true); - if (tvguideConfig.closeOnSwitch) + if (tvguideConfig.closeOnSwitch) { + if (detailView) { + delete detailView; + detailView = NULL; + } return osEnd; + } } return osContinue; }