fixed channel switching with blue key

This commit is contained in:
louis 2013-12-22 11:03:52 +01:00
parent edc1bb1d71
commit cd4ca89f8b
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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;
}