summaryrefslogtreecommitdiff
path: root/mymenucommands.c
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2006-04-17 17:00:18 +0200
committerAndreas Mair <andreas@vdr-developer.org>2006-04-17 17:00:18 +0200
commit3c04e4ce347dff915def3a79f348f2f46e60564d (patch)
tree51defa818f251ce9d70472ad202b85165c6837fc /mymenucommands.c
parent82bfd4c15949019ede37b2b04be79659c5c65dbe (diff)
downloadvdr-plugin-extrecmenu-3c04e4ce347dff915def3a79f348f2f46e60564d.tar.gz
vdr-plugin-extrecmenu-3c04e4ce347dff915def3a79f348f2f46e60564d.tar.bz2
Version 0.9av0.9a
- fixed #ifdef's for JumpPlay-patch in myreplaycontrol.c; thanks to Thomas Günther for reporting - include fixed 'dvdarchive.sh', umount wasn't possible; thanks to Mase from vdr-portal.de for reporting - added support for CmdSubMenu-patch, it should now be possible to use sub menus if you patched your VDR with BigPatch or CmdSubMenu-patch
Diffstat (limited to 'mymenucommands.c')
-rw-r--r--mymenucommands.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mymenucommands.c b/mymenucommands.c
index 399df6e..97666dc 100644
--- a/mymenucommands.c
+++ b/mymenucommands.c
@@ -30,8 +30,13 @@ eOSState myMenuCommands::Execute()
{
char *buffer=NULL;
bool confirmed=true;
- if(command->Confirm())
- {
+#ifdef CMD_SUBMENUS
+ if (command->hasChilds()) {
+ AddSubMenu(new cMenuCommands(command->Title(), command->getChilds(), parameters));
+ return osContinue;
+ }
+#endif // CMD_SUBMENUS
+ if(command->Confirm()) {
asprintf(&buffer,"%s?",command->Title());
confirmed=Interface->Confirm(buffer);
free(buffer);