[gthumb/ext] set the default sort order if the location has order specified



commit 6dbeb22bc349c4b9cdc23610e34e6c5b70bc01c0
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Aug 25 13:08:22 2009 +0200

    set the default sort order if the location has order specified

 gthumb/gth-browser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 35340db..ca9efdf 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1373,6 +1373,8 @@ load_data_continue (LoadData *load_data,
 		if (sort_type == NULL) {
 			g_file_info_set_attribute_string (browser->priv->location->info, "sort::type", browser->priv->sort_type->name);
 			g_file_info_set_attribute_boolean (browser->priv->location->info, "sort::inverse", browser->priv->sort_inverse);
+			sort_type = browser->priv->sort_type;
+			sort_inverse = browser->priv->sort_inverse;
 		}
 
 		_gth_browser_set_sort_order (browser, sort_type, sort_inverse, FALSE);



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