summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-16 00:55:52 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-16 00:55:52 +0000
commit1ea4f0d4eb6a1252c4319ef362eff90c416d51d5 (patch)
tree420bc48639a1e178bb85d2546f4f044e12bc1ce9
parentf8e08f0f5ea85a5845b064d7165b094e06fc42c5 (diff)
downloadrockbox-1ea4f0d4eb6a1252c4319ef362eff90c416d51d5.tar.gz
rockbox-1ea4f0d4eb6a1252c4319ef362eff90c416d51d5.tar.bz2
rockbox-1ea4f0d4eb6a1252c4319ef362eff90c416d51d5.zip
fix menu exiting bug I introduced in the last commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12325 a1c6a512-1295-4272-9138-f99709370657
-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;
}
}