[gnome-color-manager] Fix a critical warning when adding a new profile



commit d4ee4eb64d7d6b0deaa0e734c76143fc8b46d535
Author: Richard Hughes <richard hughsie com>
Date:   Sun Nov 1 12:33:55 2009 +0000

    Fix a critical warning when adding a new profile

 src/gcm-prefs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 5768a5f..fcee3a1 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -167,6 +167,7 @@ finish_calibrate:
 
 	/* set the new profile and save config */
 	g_ptr_array_add (profiles_array, g_strdup (destination));
+	widget = GTK_WIDGET (gtk_builder_get_object (builder, "combobox_profile"));
 	gtk_combo_box_set_active (GTK_COMBO_BOX (widget), profiles_array->len - 1);
 
 	/* remove temporary file */



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