All pastes #275802 Raw Edit

petur

public c v1 · immutable
·published 2006-12-11 20:35 UTC
rendered paste body
Index: apps/main_menu.c===================================================================RCS file: /cvsroot/rockbox/apps/main_menu.c,vretrieving revision 1.160diff -u -r1.160 main_menu.c--- apps/main_menu.c	6 Dec 2006 12:11:56 -0000	1.160+++ apps/main_menu.c	11 Dec 2006 20:17:49 -0000@@ -380,10 +380,15 @@     int m;     bool result;     int i = 0;+    static bool inside_menu = false;+      /* main menu */     struct menu_item items[11]; +    if(inside_menu) return false;+    inside_menu = true;+     items[i].desc = ID2P(LANG_BOOKMARK_MENU_RECENT_BOOKMARKS);     items[i++].function = bookmark_mrb_load; @@ -435,6 +440,8 @@ #endif     menu_exit(m); +    inside_menu = false;+     return result; }