diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-05-25 13:59:42 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-05-25 13:59:42 +0100 |
commit | b66775dc53f4117868e66d829d7fc37572865235 (patch) | |
tree | 563ac9a95541217f8a5f5eb4ff3caccc32c61dcc /amiga/file.c | |
parent | 9751a107057cfe19e16e778e945d76b456d3b434 (diff) | |
download | netsurf-b66775dc53f4117868e66d829d7fc37572865235.tar.gz netsurf-b66775dc53f4117868e66d829d7fc37572865235.tar.bz2 |
Prevent ASL from causing delayed menus
Diffstat (limited to 'amiga/file.c')
-rw-r--r-- | amiga/file.c | 6 |
1 files changed, 5 insertions, 1 deletions
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))) : "", |