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

Re: [gftp] Using a bookmark - FTP-side listing didn't gets updated



On Mon, Sep 29, 2003 at 11:55:05PM +0200, Oliver Lehmann wrote:
> Hi Brian,
> 
> I hope you don't beat me for my bug reporting ;)
> 
> I'm allready connected to an FTP-server and choose now a bookmark to
> connect to an other server. After the new connection was successfully
> made, I still have the directory listing from my previous connection. The
> listing wasn't updated. 
> I'm forced to focus the directory-input-field and hiting "Enter" to
> refresh the listing/get the appropriate listing for my actual connection.
> 
I have also the same problem with the CVS version. I don't know if it is
the right way to fix that, but please find a patch attached to fix that.

Cheers,
Aurelien
? .ChangeLog.swp
Index: src/gtk/bookmarks.c
===================================================================
RCS file: /cvs/gnome/gftp/src/gtk/bookmarks.c,v
retrieving revision 1.19
diff -u -1 -b -p -r1.19 bookmarks.c
--- src/gtk/bookmarks.c	21 Sep 2003 17:33:45 -0000	1.19
+++ src/gtk/bookmarks.c	5 Oct 2003 14:56:14 -0000
@@ -43,2 +43,5 @@ run_bookmark (gpointer data)
 
+  if (GFTP_IS_CONNECTED (current_wdata->request))
+    disconnect (current_wdata);
+
   if (gftp_parse_bookmark (current_wdata->request, other_wdata->request,
@@ -50,5 +53,2 @@ run_bookmark (gpointer data)
 
-  if (GFTP_IS_CONNECTED (current_wdata->request))
-    disconnect (current_wdata);
-
   ftp_connect (current_wdata, current_wdata->request, 1);