Allocate the file requester after reading the options which contain the values we need

to put in the allocation request

svn path=/trunk/netsurf/; revision=6068
This commit is contained in:
Chris Young 2009-01-15 12:26:06 +00:00
parent f899efce22
commit 60338f768f
1 changed files with 7 additions and 7 deletions

View File

@ -219,13 +219,6 @@ void gui_init(int argc, char** argv)
IKeymap = (struct KeymapIFace *)GetInterface(KeymapBase,"main",1,NULL);
}
filereq = (struct FileRequester *)AllocAslRequest(ASL_FileRequest,NULL);
savereq = (struct FileRequester *)AllocAslRequestTags(ASL_FileRequest,
ASLFR_DoSaveMode,TRUE,
ASLFR_RejectIcons,TRUE,
ASLFR_InitialDrawer,option_download_dir,
TAG_DONE);
ami_clipboard_init();
win_destroyed = false;
@ -234,6 +227,13 @@ void gui_init(int argc, char** argv)
verbose_log = option_verbose_log;
filereq = (struct FileRequester *)AllocAslRequest(ASL_FileRequest,NULL);
savereq = (struct FileRequester *)AllocAslRequestTags(ASL_FileRequest,
ASLFR_DoSaveMode,TRUE,
ASLFR_RejectIcons,TRUE,
ASLFR_InitialDrawer,option_download_dir,
TAG_DONE);
nsscreentitle = ASPrintf("NetSurf %s",netsurf_version);
if(lock=Lock("Resources/LangNames",ACCESS_READ))