1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed handling the "Setup/OSD/Menu button closes" option when set to 'yes' in case a replay is active

This commit is contained in:
Klaus Schmidinger 2006-02-04 13:03:03 +01:00
parent cbd32dd914
commit c712027520
3 changed files with 11 additions and 3 deletions

View File

@ -1359,6 +1359,8 @@ Udo Richter <udo_richter@gmx.de>
switching switching
for reporting a problem with auto advance in string entry fields when pressing for reporting a problem with auto advance in string entry fields when pressing
Up/Down in insert mode Up/Down in insert mode
for fixing handling the "Setup/OSD/Menu button closes" option when set to 'yes' in
case a replay is active
Sven Kreiensen <svenk@kammer.uni-hannover.de> Sven Kreiensen <svenk@kammer.uni-hannover.de>
for his help in keeping 'channels.conf.terr' up to date for his help in keeping 'channels.conf.terr' up to date

View File

@ -4291,3 +4291,5 @@ Video Disk Recorder Revision History
- Updated the Polish OSD texts (thanks to Jaroslaw Swierczynski). - Updated the Polish OSD texts (thanks to Jaroslaw Swierczynski).
- Fixed auto advance in string entry fields when pressing Up/Down in insert mode - Fixed auto advance in string entry fields when pressing Up/Down in insert mode
(reported by Udo Richter). (reported by Udo Richter).
- Fixed handling the "Setup/OSD/Menu button closes" option when set to 'yes' in
case a replay is active (thanks to Udo Richter).

8
vdr.c
View File

@ -22,7 +22,7 @@
* *
* The project's page is at http://www.cadsoft.de/vdr * The project's page is at http://www.cadsoft.de/vdr
* *
* $Id: vdr.c 1.246 2006/01/29 14:35:31 kls Exp $ * $Id: vdr.c 1.247 2006/02/04 12:57:03 kls Exp $
*/ */
#include <getopt.h> #include <getopt.h>
@ -796,8 +796,12 @@ int main(int argc, char *argv[])
bool WasMenu = Interact && Interact->IsMenu(); bool WasMenu = Interact && Interact->IsMenu();
if (Menu) if (Menu)
DELETE_MENU; DELETE_MENU;
else if (cControl::Control() && cOsd::IsOpen()) else if (cControl::Control()) {
if (cOsd::IsOpen())
cControl::Control()->Hide(); cControl::Control()->Hide();
else
WasOpen = false;
}
if (!WasOpen || !WasMenu && !Setup.MenuButtonCloses) if (!WasOpen || !WasMenu && !Setup.MenuButtonCloses)
Menu = new cMenuMain; Menu = new cMenuMain;
} }