[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [gftp] Using a bookmark - FTP-side listing didn't gets updated
- To: gftp-users@seul.org
- Subject: Re: [gftp] Using a bookmark - FTP-side listing didn't gets updated
- From: Aurelien Jarno <lists@aurel32.net>
- Date: Sun, 5 Oct 2003 17:44:45 +0200
- Delivered-to: archiver@seul.org
- Delivered-to: gftp-users-outgoing@seul.org
- Delivered-to: gftp-users@seul.org
- Delivery-date: Sun, 05 Oct 2003 11:45:24 -0400
- In-reply-to: <20030929235505.0a9f363b.lehmann@ans-netz.de>
- References: <20030929235505.0a9f363b.lehmann@ans-netz.de>
- Reply-to: gftp-users@seul.org
- Sender: owner-gftp-users@seul.org
- User-agent: Mutt/1.5.4i
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);