changeset 32653:cc6efa22cdf3

Avoid an error log for non-existent prefs.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 19 Sep 2011 23:22:10 +0000
parents c26d13e7f52b
children 3294e08d7466
files pidgin/gtkconv-theme-loader.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv-theme-loader.c	Mon Sep 19 21:03:41 2011 +0000
+++ b/pidgin/gtkconv-theme-loader.c	Mon Sep 19 23:22:10 2011 +0000
@@ -193,7 +193,8 @@
 		/* Try user-set variant */
 		prefname = g_strdup_printf(PIDGIN_PREFS_ROOT "/conversations/themes/%s/variant",
 		                           CFBundleIdentifier);
-		default_variant = purple_prefs_get_string(prefname);
+		if (purple_prefs_exists(prefname))
+			default_variant = purple_prefs_get_string(prefname);
 		g_free(prefname);
 
 		if (default_variant && *default_variant) {