diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-10-28 20:27:14 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2014-10-28 20:27:14 +0000 |
commit | 4b941297aaa8de2b092b6b799fcfc91d6e0e4782 (patch) | |
tree | d106bb612509584804fb8e5416f309483ea64fe7 /amiga/gui_options.c | |
parent | bbcb7d91b286cada167cf7a0547bc9ec03ec4a54 (diff) | |
download | netsurf-4b941297aaa8de2b092b6b799fcfc91d6e0e4782.tar.gz netsurf-4b941297aaa8de2b092b6b799fcfc91d6e0e4782.tar.bz2 |
If the initial download dir is changed, update requesters immediately to use that as the next location.
Diffstat (limited to 'amiga/gui_options.c')
-rwxr-xr-x | amiga/gui_options.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/amiga/gui_options.c b/amiga/gui_options.c index 04beb81af..290db3e97 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -1767,7 +1767,11 @@ static void ami_gui_opts_use(bool save) } GetAttr(GETFILE_Drawer,gow->objects[GID_OPTS_DLDIR],(ULONG *)&data); - nsoption_set_charp(download_dir, (char *)strdup((char *)data)); + if(strcmp(data, nsoption_charp(download_dir)) != 0) { + nsoption_set_charp(download_dir, (char *)strdup((char *)data)); + ami_file_req_free(); + ami_file_req_init(); + } GetAttr(GA_Selected,gow->objects[GID_OPTS_TAB_ACTIVE],(ULONG *)&data); if (data) { |