[nautilus] file-undo-operations: fix batch rename lists order



commit 78e7bfcd63aff000b11e65a13b2144f2ef6bfe5f
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date:   Wed Oct 26 22:38:17 2016 +0300

    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

 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 19d7d90..093251d 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,


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