[gnome-color-manager] trivial: Do not show the vcgt info bar when we have no profile selected



commit ac953975bb85ed799eacc284dab4dcc47388bc58
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 18 09:10:27 2010 +0000

    trivial: Do not show the vcgt info bar when we have no profile selected

 src/gcm-prefs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 4ca0a03..35a6832 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -1672,7 +1672,7 @@ gcm_prefs_profile_combo_changed_cb (GtkWidget *widget, gpointer data)
 			      NULL);
 
 		/* show a warning if the profile is crap */
-		if (profile_type == GCM_PROFILE_TYPE_ENUM_DISPLAY_DEVICE && !has_vcgt) {
+		if (profile_type == GCM_PROFILE_TYPE_ENUM_DISPLAY_DEVICE && !has_vcgt && filename != NULL) {
 			gtk_widget_show (info_bar_vcgt);
 		} else {
 			gtk_widget_hide (info_bar_vcgt);



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