diff src/gtk/transfer.c @ 309:cc2eeb30b793

2003-11-7 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/local.c lib/protocols.c lib/rfc2068.c lib/rfc959.c lib/sshv2.c - added copy_param_options method to gftp_request structure. When a gftp_request structure is copied, if a copy_param_options method exists, this will be called so that the local protocol data can be copied over. This is only used by the FTP protocol at the moment to save the current state of Ascii or Binary transfers. * src/gtk/transfer.c (transfer_done) - when a transfer is completed, copy the local protocol options back to the main window * lib/rfc959.c (gftp_set_data_type) - check the return value of rfc959_send_command() and if there is an error, return that error. * configure.in - added 'hr' to ALL_LINGUAS
author masneyb
date Sat, 08 Nov 2003 12:23:21 +0000
parents 6d180e6a8ba5
children 2ad0b9a00fdd
line wrap: on
line diff
--- a/src/gtk/transfer.c	Fri Nov 07 18:10:04 2003 +0000
+++ b/src/gtk/transfer.c	Sat Nov 08 12:23:21 2003 +0000
@@ -1227,15 +1227,23 @@
 
       if (GFTP_IS_SAME_HOST_STOP_TRANS ((gftp_window_data *) tdata->fromwdata,
                                          tdata->fromreq))
-        gftp_swap_socks (((gftp_window_data *) tdata->fromwdata)->request, 
-                         tdata->fromreq);
+        {
+          gftp_copy_param_options (((gftp_window_data *) tdata->fromwdata)->request, tdata->fromreq);
+
+          gftp_swap_socks (((gftp_window_data *) tdata->fromwdata)->request, 
+                           tdata->fromreq);
+        }
       else
 	gftp_disconnect (tdata->fromreq);
 
       if (GFTP_IS_SAME_HOST_STOP_TRANS ((gftp_window_data *) tdata->towdata,
                                          tdata->toreq))
-        gftp_swap_socks (((gftp_window_data *) tdata->towdata)->request, 
-                         tdata->toreq);
+        {
+          gftp_copy_param_options (((gftp_window_data *) tdata->towdata)->request, tdata->toreq);
+
+          gftp_swap_socks (((gftp_window_data *) tdata->towdata)->request, 
+                           tdata->toreq);
+        }
       else
 	gftp_disconnect (tdata->toreq);