Fixed handling numeric keys in the channel display after switching channel groups

This commit is contained in:
Klaus Schmidinger 2006-07-23 09:26:50 +02:00
parent 92e4e131d0
commit 2aa43cb3e2
3 changed files with 7 additions and 2 deletions

View File

@ -1222,6 +1222,8 @@ Andreas Regel <andreas.regel@gmx.de>
for reporting a problem in handling Transfer Mode for radio channels for reporting a problem in handling Transfer Mode for radio channels
for reporting a problem with messages when a cOsdObject uses the raw OSD for reporting a problem with messages when a cOsdObject uses the raw OSD
for implementing palette replace mode in the OSD bitmaps for implementing palette replace mode in the OSD bitmaps
for fixing handling numeric keys in the channel display after switching channel
groups
Thomas Bergwinkl <Thomas.Bergwinkl@vr-web.de> Thomas Bergwinkl <Thomas.Bergwinkl@vr-web.de>
for fixing the validity check for channel IDs, because some providers use TIDs for fixing the validity check for channel IDs, because some providers use TIDs

View File

@ -4802,7 +4802,7 @@ Video Disk Recorder Revision History
- Now making sure a VPS timer has a schedule in case the epg.data file didn't - Now making sure a VPS timer has a schedule in case the epg.data file didn't
contain one when VDR was started. contain one when VDR was started.
2006-07-22: Version 1.4.1-2 2006-07-23: Version 1.4.1-2
- Fixed the Makefile of the 'servicedemo' plugin, so that it defines the - Fixed the Makefile of the 'servicedemo' plugin, so that it defines the
PLUGIN macro, which allows the Make.config file to react properly when PLUGIN macro, which allows the Make.config file to react properly when
@ -4828,3 +4828,5 @@ Video Disk Recorder Revision History
Schmirler). Schmirler).
- cDevice::GetDevice() now prefers any device that's already receiving and doesn't - cDevice::GetDevice() now prefers any device that's already receiving and doesn't
require detatching receivers (suggested by Anssi Hannula). require detatching receivers (suggested by Anssi Hannula).
- Fixed handling numeric keys in the channel display after switching channel groups
(thanks to Andreas Regel).

3
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.442 2006/06/24 10:22:57 kls Exp $ * $Id: menu.c 1.443 2006/07/23 09:23:11 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -3146,6 +3146,7 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key)
return osEnd; return osEnd;
} }
case k1 ... k9: case k1 ... k9:
group = -1;
if (number >= 0) { if (number >= 0) {
if (number > Channels.MaxNumber()) if (number > Channels.MaxNumber())
number = Key - k0; number = Key - k0;