summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-12-04 15:33:41 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2017-12-04 15:33:41 +0100
commite5e0315d3490511ccaa6c7e0d456cffbd7d773fb (patch)
tree539f9c036dfc44299bb3c04efa85b49ff7d689bd /menu.c
parent0224fc5210b61ec323f05957e626edad9d123001 (diff)
downloadvdr-e5e0315d3490511ccaa6c7e0d456cffbd7d773fb.tar.gz
vdr-e5e0315d3490511ccaa6c7e0d456cffbd7d773fb.tar.bz2
The CAM menu is now automatically closed when the current channel is switched
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index af904102..c17a4f10 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 4.47 2017/12/04 14:50:59 kls Exp $
+ * $Id: menu.c 4.48 2017/12/04 15:25:57 kls Exp $
*/
#include "menu.h"
@@ -3798,6 +3798,7 @@ bool cMenuSetupCAMItem::Changed(void)
class cMenuSetupCAM : public cMenuSetupBase {
private:
+ int currentChannel;
const char *activationHelp;
eOSState Menu(void);
eOSState Reset(void);
@@ -3810,6 +3811,7 @@ public:
cMenuSetupCAM::cMenuSetupCAM(void)
{
+ currentChannel = cDevice::CurrentChannel();
activationHelp = NULL;
SetMenuCategory(mcSetupCam);
SetSection(tr("CAM"));
@@ -3935,6 +3937,8 @@ eOSState cMenuSetupCAM::ProcessKey(eKeys Key)
}
SetHelpKeys();
}
+ if (currentChannel != cDevice::CurrentChannel())
+ state = osEnd;
return state;
}