lcdexec: Worked around parameter issue by automatically adding an Action entry

as last parameter menu entry.
This commit is contained in:
marschap
2007-10-11 19:29:34 +00:00
parent 58f2761986
commit 898e21be25
4 changed files with 70 additions and 17 deletions
+2 -2
View File
@@ -366,10 +366,10 @@ static int process_response(char *str)
* - command entry without args
* - last arg of a command entry with args */
if (((entry->type == MT_EXEC) && (entry->children == NULL)) ||
((entry->type & MT_ARG_ANY) && (entry->next == NULL))) {
((entry->type & MT_ARGUMENT) && (entry->next == NULL))) {
// last arg => get parent entry
if ((entry->type & MT_ARG_ANY) && (entry->next == NULL))
if ((entry->type & MT_ARGUMENT) && (entry->next == NULL))
entry = entry->parent;
if (entry->type == MT_EXEC)