]> git.0d.be Git - empathy.git/commitdiff
Try to create salut account if getting the gconf key fails. If the user starts empath...
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 12 Feb 2008 10:34:49 +0000 (10:34 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 12 Feb 2008 10:34:49 +0000 (10:34 +0000)
svn path=/trunk/; revision=627

src/empathy.c

index 5f76ecc0be9b3bec18cccd7e35faa5d300a2a496..fb7b5cd31c20f10b5410eb08e01834c6e1e0b331 100644 (file)
@@ -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;
        }