[nautilus] file-operations: reset skipped status of files on copy/move



commit b5ebb703746ce94c0090ac3ffa41e3f008a37fa4
Author: Ernestas Kulik <ernestask gnome org>
Date:   Sun Mar 5 15:48:05 2017 +0200

    file-operations: reset skipped status of files on copy/move
    
    When copying or moving a file, the file’s “skipped” status is not reset,
    resulting in cases where the code starts skipping all files. In such
    cases the progress popover will show the finished operation count higher
    than the total amount of files.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779569

 src/nautilus-file-operations.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index 940f33c..76b37ad 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -5168,6 +5168,8 @@ copy_move_file (CopyMoveJob   *copy_job,
 
     job = (CommonJob *) copy_job;
 
+    *skipped_file = FALSE;
+
     if (should_skip_file (job, src))
     {
         *skipped_file = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]