diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-22 14:38:54 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-22 14:38:54 +0100 |
commit | 9443b6999e3ae9f716b527bdc3fd04c9348b5df4 (patch) | |
tree | 973c31e7a038f40e147893323cfad1f53b88779d /menu.c | |
parent | 6cd9124d08713dc11a068f31bfa2cab266a1895b (diff) | |
download | vdr-9443b6999e3ae9f716b527bdc3fd04c9348b5df4.tar.gz vdr-9443b6999e3ae9f716b527bdc3fd04c9348b5df4.tar.bz2 |
Fixed detecting if there can be any useful further input when entering channel numbers
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.400 2006/01/22 14:24:02 kls Exp $ + * $Id: menu.c 1.401 2006/01/22 14:30:00 kls Exp $ */ #include "menu.h" @@ -3107,15 +3107,18 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key) DisplayChannel(); // Lets see if there can be any useful further input: int n = channel ? number * 10 : 0; + int m = 10; cChannel *ch = channel; while (ch && (ch = Channels.Next(ch)) != NULL) { if (!ch->GroupSep()) { - if (n <= ch->Number() && ch->Number() <= n + 9) { + if (n <= ch->Number() && ch->Number() < n + m) { n = 0; break; } - if (ch->Number() > n) + if (ch->Number() > n) { n *= 10; + m *= 10; + } } } if (n > 0) { |