summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-22 11:03:52 +0100
committerlouis <louis.braun@gmx.de>2013-12-22 11:03:52 +0100
commitcd4ca89f8b5dec057f3e98a108e6d9a2f5e279b3 (patch)
treedef57fa48190457c70e93f64e08596dc654a2728
parentedc1bb1d7119defcaa155cf993f52889717458c0 (diff)
downloadvdr-plugin-tvguide-cd4ca89f8b5dec057f3e98a108e6d9a2f5e279b3.tar.gz
vdr-plugin-tvguide-cd4ca89f8b5dec057f3e98a108e6d9a2f5e279b3.tar.bz2
fixed channel switching with blue key
-rw-r--r--HISTORY2
-rw-r--r--tvguideosd.c7
2 files changed, 8 insertions, 1 deletions
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;
}