aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index a3b5d060a22..7ef1131769a 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1669,6 +1669,11 @@ set_frame_menubar (f, first_time, deep_p)
1669 = (Lisp_Object *) alloca (previous_menu_items_used 1669 = (Lisp_Object *) alloca (previous_menu_items_used
1670 * sizeof (Lisp_Object)); 1670 * sizeof (Lisp_Object));
1671 1671
1672 /* If we are making a new widget, its contents are empty,
1673 do always reinitialize them. */
1674 if (! menubar_widget)
1675 previous_menu_items_used = 0;
1676
1672 buffer = XWINDOW (FRAME_SELECTED_WINDOW (f))->buffer; 1677 buffer = XWINDOW (FRAME_SELECTED_WINDOW (f))->buffer;
1673 specbind (Qinhibit_quit, Qt); 1678 specbind (Qinhibit_quit, Qt);
1674 /* Don't let the debugger step into this code 1679 /* Don't let the debugger step into this code