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 with messages when a cOsdObject uses the raw OSD
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>
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
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
PLUGIN macro, which allows the Make.config file to react properly when
@ -4828,3 +4828,5 @@ Video Disk Recorder Revision History
Schmirler).
- cDevice::GetDevice() now prefers any device that's already receiving and doesn't
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
* 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"
@ -3146,6 +3146,7 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key)
return osEnd;
}
case k1 ... k9:
group = -1;
if (number >= 0) {
if (number > Channels.MaxNumber())
number = Key - k0;