comparison src/gtk/bookmarks.c @ 285:470759f49ba2

2003-10-12 Brian Masney <masneyb@gftp.org> * src/gtk/bookmarks.c - disconnect from the site before we parse the bookmarks (from Aurelien Jarno <lists@aurel32.net>)
author masneyb
date Mon, 13 Oct 2003 00:41:18 +0000
parents 5810b0f97eee
children 3b9d5797050f
comparison
equal deleted inserted replaced
284:9f121f62284b 285:470759f49ba2
39 _("%s: Please hit the stop button first to do anything else\n"), 39 _("%s: Please hit the stop button first to do anything else\n"),
40 _("Run Bookmark")); 40 _("Run Bookmark"));
41 return; 41 return;
42 } 42 }
43 43
44 if (GFTP_IS_CONNECTED (current_wdata->request))
45 disconnect (current_wdata);
46
44 if (gftp_parse_bookmark (current_wdata->request, other_wdata->request, 47 if (gftp_parse_bookmark (current_wdata->request, other_wdata->request,
45 (char *) data, &refresh_local) < 0) 48 (char *) data, &refresh_local) < 0)
46 return; 49 return;
47 50
48 if (refresh_local) 51 if (refresh_local)
49 refresh (other_wdata); 52 refresh (other_wdata);
50
51 if (GFTP_IS_CONNECTED (current_wdata->request))
52 disconnect (current_wdata);
53 53
54 ftp_connect (current_wdata, current_wdata->request, 1); 54 ftp_connect (current_wdata, current_wdata->request, 1);
55 } 55 }
56 56
57 57