summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2008-12-21 23:38:29 +0100
committerJochen Dolze <vdr@dolze.de>2008-12-21 23:38:29 +0100
commitc0be4f653bd22b9ea3878a805ea97429a6a6d9f9 (patch)
tree0fb473c6cdad4ebd297ad8485c950488bd0b19cb /setup.cpp
parente90b76362c281f3d55db5260076a1ca25254b3a1 (diff)
downloadvdr-plugin-infosatepg-c0be4f653bd22b9ea3878a805ea97429a6a6d9f9.tar.gz
vdr-plugin-infosatepg-c0be4f653bd22b9ea3878a805ea97429a6a6d9f9.tar.bz2
Smaller bugfixes
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/setup.cpp b/setup.cpp
index 1879e57..85521f5 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -75,17 +75,17 @@ void cMenuSetupInfosatepg::Store(void)
eOSState cMenuSetupInfosatepg::Edit()
{
if (HasSubMenu() || Count()==0)
- return osContinue;
+ return osBack;
if (Current()>=chanCurrent)
{
int chanIndex=Current()-chanCurrent;
if (chanIndex<global->InfosatChannels())
return AddSubMenu(new cMenuSetupChannelMenu(global,chanIndex));
else
- return osContinue;
+ return osBack;
}
else
- return osContinue;
+ return osBack;
}
eOSState cMenuSetupInfosatepg::ProcessKey(eKeys Key)
@@ -100,7 +100,9 @@ eOSState cMenuSetupInfosatepg::ProcessKey(eKeys Key)
switch (Key)
{
case kOk:
- return Edit();
+ state=Edit();
+ if (state==osBack) Store();
+ break;
default:
break;
}