[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[gftp] FTP-side listing didn't gets updated when using drag-n-drop



Hi,

I found a small bug in gFTP: When I'm already connected to an FTP-server
and choose now to connect to another one using drag-n-drop (to the top 
left corner icon with the two green screens), the directory listing is
not updated. I need to do a manual refresh.

The attached patched should correct that.

Regards,
Aurelien Janro

-- 
  .''`.  Aurelien Jarno
 : :' :  Electrical Engineering Student | Debian GNU/Linux developer
 `. `'   aurelien@aurel32.net           | aurel32@debian.org
   `-    www.aurel32.net                | people.debian.org/~aurel32
--- gftp-2.0.16.orig/src/gtk/dnd.c
+++ gftp-2.0.16/src/gtk/dnd.c
@@ -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);
-        }
     }
 }

Attachment: signature.asc
Description: Digital signature