summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-04 13:03:03 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-04 13:03:03 +0100
commitc7120275206511042ddca4f56239ae5e0cb83835 (patch)
treed826e35d4cbba5ea6bc3776cbed2172d2217e43a
parentcbd32dd914d2670b907aa6030ecbeefab78ae8b3 (diff)
downloadvdr-c7120275206511042ddca4f56239ae5e0cb83835.tar.gz
vdr-c7120275206511042ddca4f56239ae5e0cb83835.tar.bz2
Fixed handling the "Setup/OSD/Menu button closes" option when set to 'yes' in case a replay is active
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY2
-rw-r--r--vdr.c10
3 files changed, 11 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 788c05b6..42c8a892 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1359,6 +1359,8 @@ Udo Richter <udo_richter@gmx.de>
switching
for reporting a problem with auto advance in string entry fields when pressing
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>
for his help in keeping 'channels.conf.terr' up to date
diff --git a/HISTORY b/HISTORY
index 8cdaa581..efd64f9e 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4291,3 +4291,5 @@ Video Disk Recorder Revision History
- Updated the Polish OSD texts (thanks to Jaroslaw Swierczynski).
- Fixed auto advance in string entry fields when pressing Up/Down in insert mode
(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).
diff --git a/vdr.c b/vdr.c
index 3913f625..bf09c988 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.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>
@@ -796,8 +796,12 @@ int main(int argc, char *argv[])
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;
}