[gnome-color-manager] Fix the profile list sorting when the user has virtual profiles from CUPS



commit 4f2d00ceec6d708ec9f3b22f1c597a5369cc11c4
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jun 14 15:29:09 2011 +0100

    Fix the profile list sorting when the user has virtual profiles from CUPS

 src/gcm-viewer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 98f2572..fa743f7 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -257,7 +257,6 @@ gcm_viewer_update_profile_list (GcmViewerPrivate *viewer)
 
 		profile_kind = cd_profile_get_kind (profile);
 		icon_name = gcm_viewer_profile_kind_to_icon_name (profile_kind);
-		gtk_list_store_append (viewer->list_store_profiles, &iter);
 		filename = cd_profile_get_filename (profile);
 		if (filename == NULL)
 			continue;
@@ -266,6 +265,7 @@ gcm_viewer_update_profile_list (GcmViewerPrivate *viewer)
 					gcm_viewer_profile_get_sort_string (profile_kind),
 					description);
 		g_debug ("add %s to profiles list", filename);
+		gtk_list_store_append (viewer->list_store_profiles, &iter);
 		gtk_list_store_set (viewer->list_store_profiles, &iter,
 				    GCM_PROFILES_COLUMN_ID, filename,
 				    GCM_PROFILES_COLUMN_SORT, sort,



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