From 8ae3fff01c2aa6a6196a3a014983754866c45b99 Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Sun, 23 Jan 2011 15:00:39 +0300 Subject: [PATCH] When copying files, place them into clipboard in straight (and not reverse) order. This fixes an undesired behavior in a case when several large ordered files (e.g. movies or archive volumes) are copied. When they are copied in reverse order, they are pasted in that order too, and this is unconvenient to work with, if copying is interrupted or target media is out of free space. --- thunar/thunar-clipboard-manager.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/thunar/thunar-clipboard-manager.c b/thunar/thunar-clipboard-manager.c index fa40b99..ac9a5c3 100644 --- a/thunar/thunar-clipboard-manager.c +++ b/thunar/thunar-clipboard-manager.c @@ -467,7 +467,7 @@ thunar_clipboard_manager_transfer_files (ThunarClipboardManager *manager, manager->files_cutted = !copy; /* setup the new file list */ - for (lp = files, manager->files = NULL; lp != NULL; lp = lp->next) + for (lp = files, manager->files = NULL; lp != NULL; lp = lp->prev) { file = g_object_ref (G_OBJECT (lp->data)); manager->files = g_list_prepend (manager->files, file); -- 1.7.2.3