summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-09-15 11:07:03 +0300
committerAlexandru Pandelea <alexandru.pandelea@gmail.com>2016-09-21 23:51:28 +0300
commit802713aae84011ae763eb58a61a624056468cae9 (patch)
tree335804437ab27735c24e9189044e16f43a596d5a
parent7ff0940a0688ff3700a85d1e7219d2992cc42fd0 (diff)
downloadnautilus-802713aae84011ae763eb58a61a624056468cae9.tar.gz
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
-rw-r--r--src/nautilus-file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index b5160119d..665273647 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