diff options
-rw-r--r-- | menuundelete.c | 22 | ||||
-rw-r--r-- | undelete.c | 4 |
2 files changed, 23 insertions, 3 deletions
diff --git a/menuundelete.c b/menuundelete.c index e059797..8164b5d 100644 --- a/menuundelete.c +++ b/menuundelete.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: menuundelete.c 0.2 2004/10/10 12:23:20 hflor Exp $ + * $Id: menuundelete.c 0.3 2005/10/04 12:35:20 hflor Exp $ */ #include "menuundelete.h" @@ -194,7 +194,11 @@ void cMenuRecordingSelect::SetHelpKeys(void) else { cRecording *recording = GetRecording(ri); +#if VDRVERSNUM >= 10325 + SetHelp(NULL, tr("Undelete"), tr("Delete"), (recording && recording->Info()->Title() && *recording->Info()->Title()) ? tr("Summary") : NULL); +#else SetHelp(NULL, tr("Undelete"), tr("Delete"), (recording && recording->Summary() && *recording->Summary()) ? tr("Summary") : NULL); +#endif } } else { @@ -290,12 +294,24 @@ eOSState cMenuRecordingSelect::Summary(void) if (ri && !ri->IsDirectory()) { cRecording *recording = GetRecording(ri); +#if VDRVERSNUM >= 10325 + if (recording && recording->Info()->Title() && *recording->Info()->Title()) +#else if (recording && recording->Summary() && *recording->Summary()) +#endif #if VDRVERSNUM >= 10307 +#if VDRVERSNUM >= 10325 + return AddSubMenu(new cMenuText(tr("Summary"), recording->Info()->Title())); +#else return AddSubMenu(new cMenuText(tr("Summary"), recording->Summary())); +#endif +#else +#if VDRVERSNUM >= 10325 + return AddSubMenu(new cMenuItemText(tr("Summary"), recording->Info()->Title())); #else return AddSubMenu(new cMenuItemText(tr("Summary"), recording->Summary())); #endif +#endif } return osContinue; } @@ -423,8 +439,12 @@ cMenuUndelete::~cMenuUndelete() #if VDRVERSNUM >= 10311 if (SalvageRecording) +#if VDRVERSNUM >= 10333 + Recordings.Update(); +#else Recordings.TriggerUpdate(); #endif +#endif } eOSState cMenuUndelete::ProcessKey(eKeys Key) @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: undelete.c 0.2 2004/10/10 12:23:20 hflor Exp $ + * $Id: undelete.c 0.3 2005/10/04 14:35:20 hflor Exp $ */ #include "undelete.h" @@ -15,7 +15,7 @@ #include <ctype.h> #include <vdr/recording.h> -static const char *VERSION = "0.0.2"; +static const char *VERSION = "0.0.3"; static const char *DESCRIPTION = "undelete for recordings"; // Global variables that control the overall behaviour: |