From a1f45dcf121abe51c09ed94fbcc7a19079468fcb Mon Sep 17 00:00:00 2001 From: David Gee Date: Sun, 15 Mar 2015 17:30:50 +0000 Subject: Stop unneccessary closure of menu tree when asked for clipboard data. Currently, when asked for clipboard data, Netsurf unconditionally closes the menu tree of the requesting application. This occurs in the routine ro_gui_send_datasave. There is no reason to close the menu tree: this function is called in only one place, amd the code path is through Wimp user messages-- the highest priority type of message, so other interactions cannot interfere. The fix removes the line which closes the menu tree in this particular function. --- riscos/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscos') diff --git a/riscos/save.c b/riscos/save.c index 69a8fe1fc..7b6023963 100644 --- a/riscos/save.c +++ b/riscos/save.c @@ -723,7 +723,7 @@ void ro_gui_send_datasave(gui_save_type save_type, { /* Close the save window because otherwise we need two contexts */ - xwimp_create_menu(wimp_CLOSE_MENU, 0, 0); + ro_gui_dialog_close(dialog_saveas); if (ro_message_send_message(wimp_USER_MESSAGE_RECORDED, (wimp_message*)message, -- cgit v1.2.3