[gthumb] use the right file_source object when a file is renamed



commit 493b8793288b5c93e1a58451f76de1c8f6e4e1e7
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Nov 7 09:44:42 2010 +0100

    use the right file_source object when a file is renamed
    
    [bug #634050]

 gthumb/gth-browser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index dbfa95c..c476686 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2946,7 +2946,7 @@ renamed_file_attributes_ready_cb (GthFileSource *file_source,
 		GFileInfo   *new_info;
 
 		new_location = gth_file_data_new (rename_data->new_file, browser->priv->location->info);
-		new_info = gth_file_source_get_file_info (browser->priv->location_source, new_location->file, GFILE_DISPLAY_ATTRIBUTES);
+		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);
 		_gth_browser_set_location (browser, new_location);
 



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