From c4ff05bbcaf8dd31ac88bdc76f2815da25ac08b0 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 4 Sep 2005 08:57:15 +0200 Subject: Fixed menu timeout handling while replaying --- vdr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vdr.c b/vdr.c index 4375ec77..0e0e4288 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.215 2005/09/03 13:21:32 kls Exp $ + * $Id: vdr.c 1.216 2005/09/04 08:57:15 kls Exp $ */ #include @@ -818,8 +818,8 @@ int main(int argc, char *argv[]) Interact = Menu ? Menu : cControl::Control(); // might have been closed in the mean time if (Interact) { eOSState state = Interact->ProcessKey(key); - if (state == osUnknown) { - if (ISMODELESSKEY(key) && cControl::Control() && Interact != cControl::Control()) + if (state == osUnknown && Interact != cControl::Control()) { + if (ISMODELESSKEY(key) && cControl::Control()) state = cControl::Control()->ProcessKey(key); else if (time(NULL) - LastActivity > MENUTIMEOUT) state = osEnd; -- cgit v1.2.3