mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
[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:
parent
d656bcc592
commit
3e82c07a88
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user