summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Maass <mase@mase1.setho.org>2014-01-05 21:32:24 (GMT)
committerThomas Maass <mase@mase1.setho.org>2014-01-05 21:32:24 (GMT)
commitd014d52dcb3790bd1ba38fe7b6fb0c4136364148 (patch)
tree85e59fd7cb92e396cbdcfd4999251d9ce5ffaacb
parent9c3c4538b84bab35c5b72966fec144d8456331a3 (diff)
downloadvdr-plugin-hddarchive-d014d52dcb3790bd1ba38fe7b6fb0c4136364148.tar.gz
vdr-plugin-hddarchive-d014d52dcb3790bd1ba38fe7b6fb0c4136364148.tar.bz2
Fixed compatibility with VDR 2.0.4.HEADmaster
-rw-r--r--mymenu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mymenu.c b/mymenu.c
index 154d0de..754f28e 100644
--- a/mymenu.c
+++ b/mymenu.c
@@ -10,8 +10,10 @@
// --- cMyMenuRecordings -------------------------------------------------------
+#if APIVERSNUM > 20101
cString cMyMenuRecordings::path;
cString cMyMenuRecordings::fileName;
+#endif
cMyMenuRecordings::cMyMenuRecordings(const char *Base, int Level, bool OpenSubMenus, bool Show)
:cOsdMenu(Base ? Base : tr("HDD-Archive"), 9, 6, 6), show(Show)
@@ -26,12 +28,17 @@ cMyMenuRecordings::cMyMenuRecordings(const char *Base, int Level, bool OpenSubMe
Set();
if (Current() < 0)
SetCurrent(First());
+#if APIVERSNUM > 20101
else if (OpenSubMenus && (cReplayControl::LastReplayed() || *path || *fileName)) {
if (!*path || Level < strcountchr(path, FOLDERDELIMCHAR)) {
if (Open(true))
return;
}
}
+#else
+ else if (OpenSubMenus && cReplayControl::LastReplayed() && Open(true))
+ return;
+#endif
Display();
SetHelpKeys();
}
@@ -332,6 +339,7 @@ eOSState cMyMenuRecordings::ProcessKey(eKeys Key)
default: break;
}
}
+#if APIVERSNUM > 20101
else if (state == osUser1) {
// a recording or path was renamed, so let's refresh the menu
CloseSubMenu(false);
@@ -343,6 +351,7 @@ eOSState cMyMenuRecordings::ProcessKey(eKeys Key)
path = NULL;
fileName = NULL;
}
+#endif
if (Key == kYellow && HadSubMenu && !HasSubMenu()) {
// the last recording in a subdirectory was deleted, so let's go back up
cOsdMenu::Del(Current());