From c478047978c6873093ce9e22bf8dfc0ac3ce7a69 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 12 Feb 2008 10:34:49 +0000 Subject: [PATCH] Try to create salut account if getting the gconf key fails. If the user starts empathy just after installation it will fail because gconf didn't refresh schemas yet. svn path=/trunk/; revision=627 --- src/empathy.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/empathy.c b/src/empathy.c index 5f76ecc0..fb7b5cd3 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -94,7 +94,7 @@ create_salut_account (void) { McProfile *profile; McProtocol *protocol; - gboolean salut_created; + gboolean salut_created = FALSE; McAccount *account; GList *accounts; EBook *book; @@ -106,11 +106,9 @@ create_salut_account (void) gchar *jid = NULL; /* Check if we already created a salut account */ - if (!empathy_conf_get_bool (empathy_conf_get(), - EMPATHY_PREFS_SALUT_ACCOUNT_CREATED, - &salut_created)) { - return; - } + empathy_conf_get_bool (empathy_conf_get(), + EMPATHY_PREFS_SALUT_ACCOUNT_CREATED, + &salut_created); if (salut_created) { return; } -- 2.39.2