changeset 778:cf2a51deefd8

2006-7-19 Brian Masney <masneyb@gftp.org> * src/gtk/transfer.c (check_done_process) - make sure the temporary files are removed in all cases (from Madhan Raj <raj_madan@rediffmail.com>) (closes #171459)
author masneyb
date Thu, 20 Jul 2006 02:41:26 +0000
parents f6a3f5677339
children cb70c5abd8f3
files ChangeLog src/gtk/transfer.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jul 20 02:37:45 2006 +0000
+++ b/ChangeLog	Thu Jul 20 02:41:26 2006 +0000
@@ -1,4 +1,8 @@
 2006-7-19 Brian Masney <masneyb@gftp.org>
+	* src/gtk/transfer.c (check_done_process) - make sure the temporary
+	files are removed in all cases (from Madhan Raj
+	<raj_madan@rediffmail.com>) (closes #171459)
+
 	* lib/misc.c (gftp_copy_request) - fixes when doing an IPv6 transfer or
 	using ignore PASV address (from (from Aurelien Jarno
 	<aurelien@aurel32.net>) (closes #169671)
@@ -3450,7 +3454,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.449 2006/07/20 02:37:44 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.450 2006/07/20 02:41:25 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/src/gtk/transfer.c	Thu Jul 20 02:37:45 2006 +0000
+++ b/src/gtk/transfer.c	Thu Jul 20 02:41:26 2006 +0000
@@ -395,6 +395,11 @@
 		      continue;
 		    }
 		}
+	      else if (ve_proc->view && ve_proc->rm)
+	        {
+		  /* After viewing the file delete the tmp file */
+		  remove_file (ve_proc);
+		}
 
               free_edit_data (ve_proc);
 	      continue;