diff options
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -27,7 +27,6 @@ /*uncomment the following line to allow setting of PvrSetup.UseOnlyCard and StreamType.value via OSD menu (see README) */ -#define PVR_DEBUG #include "common.h" #include "submenu.h" @@ -81,9 +80,12 @@ cPvrMenuSetup::cPvrMenuSetup() eOSState cPvrMenuSetup::ProcessKey(eKeys Key) { eOSState state = osUnknown; - if (Key == kOk || Key == kBack) { + if (Key == kOk && HasSubMenu()) { Store(); } + if (Key == kBack && HasSubMenu()) { + newPvrSetup = PvrSetup; + } if (!HasSubMenu()) { if (Key == kOk) { const char* ItemText = Get(Current())->Text(); |