summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-11-25 15:27:10 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-11-25 15:27:10 +0100
commitbd411a6620f896b82494338e6386dd0324f63353 (patch)
tree1dbfe18e0d5ec18e6b4816562e96458f0510e09f /vdr.c
parentade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7 (diff)
downloadvdr-bd411a6620f896b82494338e6386dd0324f63353.tar.gz
vdr-bd411a6620f896b82494338e6386dd0324f63353.tar.bz2
The kInfo key is now propagated to any open menu
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c11
1 files changed, 7 insertions, 4 deletions
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 <getopt.h>
@@ -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;