diff options
author | Jochen Dolze <vdr@dolze.de> | 2008-12-21 23:38:29 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2008-12-21 23:38:29 +0100 |
commit | c0be4f653bd22b9ea3878a805ea97429a6a6d9f9 (patch) | |
tree | 0fb473c6cdad4ebd297ad8485c950488bd0b19cb | |
parent | e90b76362c281f3d55db5260076a1ca25254b3a1 (diff) | |
download | vdr-plugin-infosatepg-c0be4f653bd22b9ea3878a805ea97429a6a6d9f9.tar.gz vdr-plugin-infosatepg-c0be4f653bd22b9ea3878a805ea97429a6a6d9f9.tar.bz2 |
Smaller bugfixes
-rw-r--r-- | infosatepg.cpp | 2 | ||||
-rw-r--r-- | infosatepg.h | 2 | ||||
-rw-r--r-- | setup.cpp | 10 |
3 files changed, 8 insertions, 6 deletions
diff --git a/infosatepg.cpp b/infosatepg.cpp index c580dee..89ae1b6 100644 --- a/infosatepg.cpp +++ b/infosatepg.cpp @@ -174,7 +174,7 @@ void cPluginInfosatepg::MainThreadHook(void) cString cPluginInfosatepg::Active(void) { // Returns a message string if shutdown should be postponed - if (!global->Locked()) + if (!global->isLocked()) return tr("Infosat plugin still working"); return NULL; } diff --git a/infosatepg.h b/infosatepg.h index 1f6c22c..6a88e48 100644 --- a/infosatepg.h +++ b/infosatepg.h @@ -12,7 +12,7 @@ #include "global.h" #include "status.h" -static const char *VERSION = "0.0.5"; +static const char *VERSION = "0.0.6"; static const char *DESCRIPTION = trNOOP("Read EPG info from infosat"); class cPluginInfosatepg : public cPlugin { @@ -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; } |