Ensure the source isn't deleted as partial copy in a duplicate operation.

2004-01-02  Martin Wehner  <martin.wehner@epost.de>

	* libnautilus-private/nautilus-file-operations.c:
	Ensure the source isn't deleted as partial copy
	in a duplicate operation. Fixes bug #128095.
This commit is contained in:
Martin Wehner 2004-01-02 07:45:53 +00:00 committed by Martin Wehner
parent 68d7895c87
commit 2453e643b7
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-01-02 Martin Wehner <martin.wehner@epost.de>
* libnautilus-private/nautilus-file-operations.c:
Ensure the source isn't deleted as partial copy
in a duplicate operation. Fixes bug #128095.
=== nautilus 2.5.4 ===
2003-12-29 Alexander Larsson <alexl@redhat.com>

View file

@ -386,9 +386,11 @@ handle_transfer_ok (const GnomeVFSXferProgressInfo *progress_info,
if (transfer_info->cancelled
&& progress_info->phase != GNOME_VFS_XFER_PHASE_COMPLETED) {
/* If cancelled, delete any partially copied files that are laying
* around and return.
* around and return. Don't delete the source though..
*/
if (progress_info->target_name != NULL
&& progress_info->source_name != NULL
&& strcmp (progress_info->source_name, progress_info->target_name) != 0
&& progress_info->bytes_total != progress_info->bytes_copied) {
GList *delete_me;