diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2016-10-26 22:38:17 +0300 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2016-10-26 22:38:17 +0300 |
commit | 78e7bfcd63aff000b11e65a13b2144f2ef6bfe5f (patch) | |
tree | 874febbef92bd45335c3ea5b759aef54ba1a94b2 | |
parent | ebaa70c16770bd4214b339d9e7390510ed7e7b80 (diff) | |
download | nautilus-78e7bfcd63aff000b11e65a13b2144f2ef6bfe5f.tar.gz |
file-undo-operations: fix batch rename lists order
Reverse the files list for undo/redo for batch rename, which was
wrongfully deleted by commit fc4135d8124157d2435d66aceea5958ed643227d
-rw-r--r-- | src/nautilus-file-undo-operations.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-file-undo-operations.c b/src/nautilus-file-undo-operations.c index 19d7d90ea..093251d3f 100644 --- a/src/nautilus-file-undo-operations.c +++ b/src/nautilus-file-undo-operations.c @@ -1139,6 +1139,8 @@ batch_rename_redo_func (NautilusFileUndoInfo *info, files = g_list_prepend (files, file); } + files = g_list_reverse (files); + batch_rename_sort_lists_for_rename (&files, &self->priv->new_display_names, &self->priv->old_display_names, @@ -1169,6 +1171,8 @@ batch_rename_undo_func (NautilusFileUndoInfo *info, files = g_list_prepend (files, file); } + files = g_list_reverse (files); + batch_rename_sort_lists_for_rename (&files, &self->priv->old_display_names, &self->priv->new_display_names, |