diff src/gtk/gtkui.c @ 912:1f9c6baa458c

2007-4-18 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.c src/gtk/gtkui.c src/gtk/gftp-gtk.h - added new function gftp_gtk_init_request(). It will initialize a gftp_request structure inside the gftp_window_data structure. * src/gtk/gtkui.c (gftpui_disconnect) - completely free the gftp_request structure when the user disconnects from the site.
author masneyb
date Wed, 18 Apr 2007 23:38:55 +0000
parents 1808cebed602
children f37091406523
line wrap: on
line diff
--- a/src/gtk/gtkui.c	Wed Apr 18 23:34:01 2007 +0000
+++ b/src/gtk/gtkui.c	Wed Apr 18 23:38:55 2007 +0000
@@ -472,6 +472,11 @@
   gftp_delete_cache_entry (wdata->request, NULL, 1);
   gftp_disconnect (wdata->request);
   remove_files_window (wdata);
+
+  /* Free the request structure so that all old settings are purged. */
+  gftp_request_destroy (wdata->request, 1);
+  gftp_gtk_init_request (wdata);
+
   update_window_info ();
 }