diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-07-26 16:10:39 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-07-26 16:10:39 +0200 |
commit | 0485e5ad00446f31deaf981fb10855b1dc870f34 (patch) | |
tree | 245d6d6d8764e056565b77597c8f5dc104940b50 /menu.c | |
parent | eb2cd2b73e97ac03cb074c7f3b93aaea6cb4fb82 (diff) | |
download | vdr-0485e5ad00446f31deaf981fb10855b1dc870f34.tar.gz vdr-0485e5ad00446f31deaf981fb10855b1dc870f34.tar.bz2 |
Fixed handling channel switching through numeric input in case the channel numbers contain gaps
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 8 |
1 files changed, 4 insertions, 4 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.261 2003/07/26 10:05:20 kls Exp $ + * $Id: menu.c 1.262 2003/07/26 16:10:39 kls Exp $ */ #include "menu.h" @@ -2749,15 +2749,15 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key) DisplayChannel(channel); lastTime = time_ms(); // Lets see if there can be any useful further input: - int n = channel ? number : 0; + int n = channel ? number * 10 : 0; while (channel && (channel = Channels.Next(channel)) != NULL) { if (!channel->GroupSep()) { - if (channel->Number() > n) - n *= 10; if (n <= channel->Number() && channel->Number() <= n + 9) { n = 0; break; } + if (channel->Number() > n) + n *= 10; } } if (n > 0) { |