From bd411a6620f896b82494338e6386dd0324f63353 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 25 Nov 2007 15:27:10 +0100 Subject: The kInfo key is now propagated to any open menu --- vdr.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'vdr.c') diff --git a/vdr.c b/vdr.c index a4e6e1f4..34eee374 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.302 2007/11/03 14:46:29 kls Exp $ + * $Id: vdr.c 1.303 2007/11/25 15:11:33 kls Exp $ */ #include @@ -914,9 +914,11 @@ int main(int argc, char *argv[]) break; // Info: case kInfo: { - bool WasInfoMenu = IsInfoMenu; - DELETE_MENU; - if (!WasInfoMenu) { + if (IsInfoMenu) { + key = kNone; // nobody else needs to see this key + DELETE_MENU; + } + else if (!Menu) { IsInfoMenu = true; if (cControl::Control()) { cControl::Control()->Hide(); @@ -930,6 +932,7 @@ int main(int argc, char *argv[]) cRemote::Put(kOk, true); cRemote::Put(kSchedule, true); } + key = kNone; // nobody else needs to see this key } } break; -- cgit v1.2.3