From 4b941297aaa8de2b092b6b799fcfc91d6e0e4782 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 28 Oct 2014 20:27:14 +0000 Subject: If the initial download dir is changed, update requesters immediately to use that as the next location. --- amiga/gui_options.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'amiga/gui_options.c') 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) { -- cgit v1.2.3