[vdr] 1.3.39, "Menu button closes" true: No menu from replay

Udo Richter udo_richter at gmx.de
Sun Jan 15 18:39:12 CET 2006


Hi Klaus,

With 1.3.39 and "Menu button closes" set to true, the main menu doesn't
open if any replay control is active. The attached patch fixes this by
resetting a !IsOpen cControl to WasOpen=false.

Cheers,

Udo

-------------- next part --------------
--- vdr-1.3.39-old/vdr.c	2006-01-15 18:33:54.000000000 +0100
+++ vdr-1.3.39/vdr.c	2006-01-15 18:38:28.000000000 +0100
@@ -795,8 +795,12 @@
                bool WasMenu = Interact && Interact->IsMenu();
                if (Menu)
                   DELETE_MENU;
-               else if (cControl::Control() && cOsd::IsOpen())
-                  cControl::Control()->Hide();
+               else if (cControl::Control()) {
+                  if (cOsd::IsOpen())
+                     cControl::Control()->Hide();
+                  else
+                     WasOpen = false;
+                  }
                if (!WasOpen || !WasMenu && !Setup.MenuButtonCloses)
                   Menu = new cMenuMain;
                }


More information about the vdr mailing list