summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 0060e84ad0..88574caa78 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -549,7 +549,9 @@ int do_menu(const struct menu_item_ex *start_menu)
}
else
{
- menu_callback(ACTION_EXIT_MENUITEM, menu);
+ get_menu_callback(menu, &menu_callback);
+ if (menu_callback)
+ menu_callback(ACTION_EXIT_MENUITEM, menu);
break;
}
}