[gnome-color-manager] trivial: don't show a warning if a device has no profile and is selected in the UI



commit 12bfc52348f4ee2b17e3268514d4c7289e3b48c1
Author: Richard Hughes <richard hughsie com>
Date:   Tue Feb 9 14:46:21 2010 +0000

    trivial: don't show a warning if a device has no profile and is selected in the UI

 src/gcm-prefs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 3211479..d9fae5e 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -1637,7 +1637,8 @@ gcm_prefs_add_profiles_suitable_for_devices (GtkWidget *widget, const gchar *pro
 
 	/* select 'None' if there was no match */
 	if (!set_active) {
-		egg_warning ("no match for %s", profile_filename);
+		if (profile_filename != NULL)
+			egg_warning ("no match for %s", profile_filename);
 		gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
 	}
 	if (profile_array != NULL)



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