summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vdr.c6
1 files 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 <getopt.h>
@@ -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;