Mercurial > gftp.yaz
changeset 329:df4c91bf4adf
2003-12-7 Brian Masney <masneyb@gftp.org>
* src/gtk/dnd.c (openurl_get_drag_data) - if we are connected to a
remote site, disconnect before parsing the URL. This fixes a bug where
the directory was not being refreshed properly (from Aurelien Jarno
<lists@aurel32.net>)
author | masneyb |
---|---|
date | Mon, 08 Dec 2003 02:14:26 +0000 |
parents | 51bb530a100c |
children | 532eb171d5c2 |
files | ChangeLog src/gtk/dnd.c |
diffstat | 2 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Dec 07 17:25:13 2003 +0000 +++ b/ChangeLog Mon Dec 08 02:14:26 2003 +0000 @@ -1,4 +1,9 @@ 2003-12-7 Brian Masney <masneyb@gftp.org> + * src/gtk/dnd.c (openurl_get_drag_data) - if we are connected to a + remote site, disconnect before parsing the URL. This fixes a bug where + the directory was not being refreshed properly (from Aurelien Jarno + <lists@aurel32.net>) + * configure.in acinclude.m4 lib/misc.c - added AC_INTL_PRINTF macro. If the printf family of functions supports %'ld, then HAVE_INTL_PRINTF will be defined. The appropriate version of insert_commas() can be @@ -1807,7 +1812,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.179 2003/12/07 17:25:13 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.180 2003/12/08 02:14:25 masneyb Exp $ tags * debian/* - updated files from Debian maintainer
--- a/src/gtk/dnd.c Sun Dec 07 17:25:13 2003 +0000 +++ b/src/gtk/dnd.c Mon Dec 08 02:14:26 2003 +0000 @@ -100,14 +100,12 @@ { if ((selection_data->length >= 0) && (selection_data->format == 8)) { + if (GFTP_IS_CONNECTED (current_wdata->request)) + disconnect (current_wdata); + if (gftp_parse_url (current_wdata->request, (char *) selection_data->data) == 0) - { - if (GFTP_IS_CONNECTED (current_wdata->request)) - disconnect (current_wdata); - - ftp_connect (current_wdata, current_wdata->request, 1); - } + ftp_connect (current_wdata, current_wdata->request, 1); } }