summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-07-26 16:10:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-07-26 16:10:39 +0200
commit0485e5ad00446f31deaf981fb10855b1dc870f34 (patch)
tree245d6d6d8764e056565b77597c8f5dc104940b50
parenteb2cd2b73e97ac03cb074c7f3b93aaea6cb4fb82 (diff)
downloadvdr-0485e5ad00446f31deaf981fb10855b1dc870f34.tar.gz
vdr-0485e5ad00446f31deaf981fb10855b1dc870f34.tar.bz2
Fixed handling channel switching through numeric input in case the channel numbers contain gaps
-rw-r--r--menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index 68653917..ca98630c 100644
--- a/menu.c
+++ b/menu.c
@@ -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) {