[gnome-color-manager] trivial: don't show a warning if a device has no profile and is selected in the UI
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: don't show a warning if a device has no profile and is selected in the UI
- Date: Tue, 9 Feb 2010 14:54:12 +0000 (UTC)
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]