Mercurial > gftp.yaz
comparison src/gtk/dnd.c @ 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 | 3b9d5797050f |
children | d5409bf03ff1 |
comparison
equal
deleted
inserted
replaced
328:51bb530a100c | 329:df4c91bf4adf |
---|---|
98 gint y, GtkSelectionData * selection_data, guint info, | 98 gint y, GtkSelectionData * selection_data, guint info, |
99 guint32 clk_time, gpointer data) | 99 guint32 clk_time, gpointer data) |
100 { | 100 { |
101 if ((selection_data->length >= 0) && (selection_data->format == 8)) | 101 if ((selection_data->length >= 0) && (selection_data->format == 8)) |
102 { | 102 { |
103 if (GFTP_IS_CONNECTED (current_wdata->request)) | |
104 disconnect (current_wdata); | |
105 | |
103 if (gftp_parse_url (current_wdata->request, | 106 if (gftp_parse_url (current_wdata->request, |
104 (char *) selection_data->data) == 0) | 107 (char *) selection_data->data) == 0) |
105 { | 108 ftp_connect (current_wdata, current_wdata->request, 1); |
106 if (GFTP_IS_CONNECTED (current_wdata->request)) | |
107 disconnect (current_wdata); | |
108 | |
109 ftp_connect (current_wdata, current_wdata->request, 1); | |
110 } | |
111 } | 109 } |
112 } | 110 } |
113 | 111 |
114 | 112 |
115 void | 113 void |