Commit 38c06e70 authored by J Shane Culpepper's avatar J Shane Culpepper Committed by J Shane Culpepper

reviewed by: Gene Z. Ragan <gzr@eazel.com>

2001-02-15  J Shane Culpepper  <pepper@eazel.com>

	reviewed by: Gene Z. Ragan  <gzr@eazel.com>

	* libnautilus-extensions/nautilus-file-operations.c:
	(handle_transfer_ok):

	Fix for Bug #1505, Cancelled copy operations leave partial
	files.  Nautilus now catches cancel and deletes the partial
	file.
parent 1f3ad090
2001-02-15 J Shane Culpepper <pepper@eazel.com>
reviewed by: Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-file-operations.c:
(handle_transfer_ok):
Fix for Bug #1505, Cancelled copy operations leave partial
files. Nautilus now catches cancel and deletes the partial
file.
2001-02-15 Ramiro Estrugo <ramiro@eazel.com>
reviewed by: Darin Adler <darin@eazel.com>
......
......@@ -420,9 +420,19 @@ handle_transfer_ok (const GnomeVFSXferProgressInfo *progress_info,
{
if (transfer_info->cancelled
&& progress_info->phase != GNOME_VFS_XFER_PHASE_COMPLETED) {
/* If cancelled, return right away, unless we are calling
* to shut down the progress dialog.
/* If cancelled, delete any partially copied files that are laying
* around and return.
*/
if (progress_info->bytes_total != progress_info->bytes_copied) {
GList *delete_me = NULL;
delete_me = g_list_append (delete_me, progress_info->target_name);
nautilus_file_operations_delete (delete_me, transfer_info->parent_view);
g_list_free (delete_me);
}
return 0;
}
......
......@@ -420,9 +420,19 @@ handle_transfer_ok (const GnomeVFSXferProgressInfo *progress_info,
{
if (transfer_info->cancelled
&& progress_info->phase != GNOME_VFS_XFER_PHASE_COMPLETED) {
/* If cancelled, return right away, unless we are calling
* to shut down the progress dialog.
/* If cancelled, delete any partially copied files that are laying
* around and return.
*/
if (progress_info->bytes_total != progress_info->bytes_copied) {
GList *delete_me = NULL;
delete_me = g_list_append (delete_me, progress_info->target_name);
nautilus_file_operations_delete (delete_me, transfer_info->parent_view);
g_list_free (delete_me);
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment