[project @ 2005-04-14 01:34:23 by rjw]

Only close menus we own.

svn path=/import/netsurf/; revision=1629
This commit is contained in:
Richard Wilson 2005-04-14 01:34:23 +00:00
parent d656bcc592
commit 3e82c07a88

View File

@ -509,6 +509,9 @@ void ro_gui_menu_closed(void) {
struct tree *tree;
os_error *error;
if (!current_menu)
return;
error = xwimp_create_menu(wimp_CLOSE_MENU, 0, 0);
if (error) {
LOG(("xwimp_create_menu: 0x%x: %s",
@ -516,9 +519,6 @@ void ro_gui_menu_closed(void) {
warn_user("MenuError", error->errmess);
}
if (!current_menu)
return;
ro_gui_menu_get_window_details(current_menu_window, &g, &bw, &c, &t, &tree);
current_menu = NULL;