[gthumb] catalog: preserve the sort order after renaming



commit 1b4ffdb52d5d0893e41fbbf2f6ae29719ddcf569
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Jan 29 08:11:46 2020 +0100

    catalog: preserve the sort order after renaming
    
    Update the location info instead of setting it.

 gthumb/gth-browser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 9afa367f..e9925142 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -3359,7 +3359,7 @@ renamed_file_attributes_ready_cb (GthFileSource *file_source,
 
                new_location = gth_file_data_new (rename_data->new_file, browser->priv->location->info);
                new_info = gth_file_source_get_file_info (rename_data->file_source, new_location->file, 
GFILE_DISPLAY_ATTRIBUTES);
-               g_file_info_copy_into (new_info, new_location->info);
+               _g_file_info_update (new_location->info, new_info);
 
                _gth_browser_update_location (browser, new_location);
 


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