[nautilus] file: complete operation if all files skipped



commit 802713aae84011ae763eb58a61a624056468cae9
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date:   Thu Sep 15 11:07:03 2016 +0300

    file: complete operation if all files skipped
    
    If all files are skipped, then the batch rename operation would not end
    appropriately.
    
    To fix this, end the operation when all files are skipped.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771398

 src/nautilus-file.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index b516011..6652736 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -2353,6 +2353,11 @@ real_batch_rename (GList                         *files,
 
         nautilus_file_undo_manager_set_action (op->undo_info);
     }
+
+    if (op->skipped_files == g_list_length (files))
+    {
+        nautilus_file_operation_complete (op, NULL, error);
+    }
 }
 
 gboolean


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