From b66775dc53f4117868e66d829d7fc37572865235 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 25 May 2013 13:59:42 +0100 Subject: Prevent ASL from causing delayed menus --- amiga/file.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'amiga/file.c') diff --git a/amiga/file.c b/amiga/file.c index 49c0afebf..74c7225d4 100644 --- a/amiga/file.c +++ b/amiga/file.c @@ -83,6 +83,8 @@ void ami_file_open(struct gui_window_2 *gwin) if(AslRequestTags(filereq, ASLFR_TitleText, messages_get("NetSurf"), + ASLFR_Window, gwin->win, + ASLFR_SleepWindow, TRUE, ASLFR_Screen, scrn, ASLFR_DoSaveMode, FALSE, ASLFR_RejectIcons, TRUE, @@ -213,7 +215,7 @@ void ami_file_save(int type, char *fname, struct Window *win, FWrite(fh, source_data, 1, strlen(source_data)); FClose(fh); } - free(source_data); + free((void *)source_data); } break; } @@ -229,6 +231,8 @@ void ami_file_save_req(int type, struct gui_window_2 *gwin, char *fname = AllocVec(1024, MEMF_CLEAR | MEMF_PRIVATE); if(AslRequestTags(savereq, + ASLFR_Window, gwin->win, + ASLFR_SleepWindow, TRUE, ASLFR_TitleText, messages_get("NetSurf"), ASLFR_Screen, scrn, ASLFR_InitialFile, object ? FilePart(nsurl_access(hlcache_handle_get_url(object))) : "", -- cgit v1.2.3