diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-08 14:39:09 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-08 14:39:09 +0200 |
commit | 9d509c37e712974d653b8ccd2ceddfda7c9cccfe (patch) | |
tree | 7318c9b8e0634b003fffb8cba0a1e68c520129c0 /vdr.c | |
parent | c7bb0bb73964eafed5e337dc18278fa118775671 (diff) | |
download | vdr-9d509c37e712974d653b8ccd2ceddfda7c9cccfe.tar.gz vdr-9d509c37e712974d653b8ccd2ceddfda7c9cccfe.tar.bz2 |
Switching through channel groups now starts at current channel's group
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.71 2001/09/08 12:49:38 kls Exp $ + * $Id: vdr.c 1.72 2001/09/08 14:34:29 kls Exp $ */ #define _GNU_SOURCE @@ -406,17 +406,9 @@ int main(int argc, char *argv[]) case kLeft|k_Repeat: case kLeft: case kRight|k_Repeat: - case kRight: { - int SaveGroup = CurrentGroup; - if (NORMALKEY(key) == kRight) - CurrentGroup = Channels.GetNextGroup(CurrentGroup) ; - else - CurrentGroup = Channels.GetPrevGroup(CurrentGroup < 1 ? 1 : CurrentGroup); - if (CurrentGroup < 0) - CurrentGroup = SaveGroup; - Menu = new cDisplayChannel(CurrentGroup, false, true); + case kRight: + Menu = new cDisplayChannel(NORMALKEY(key)); break; - } // Up/Down Channel Select: case kUp|k_Repeat: case kUp: |