summaryrefslogtreecommitdiffstats
path: root/apps/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/menu.c b/apps/menu.c
index c49650d941..653dc09aec 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -81,7 +81,8 @@ static void get_menu_callback(const struct menu_item_ex *m,
static int get_menu_selection(int selected_item, const struct menu_item_ex *menu)
{
int type = (menu->flags&MENU_TYPE_MASK);
- if (type == MT_MENU && (selected_item<current_subitems_count))
+ if ((type == MT_MENU || type == MT_RETURN_ID)
+ && (selected_item<current_subitems_count))
return current_subitems[selected_item];
return selected_item;
}