diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-02-12 18:34:49 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-02-12 18:34:49 +0800 |
commit | c478047978c6873093ce9e22bf8dfc0ac3ce7a69 (patch) | |
tree | d2da2c9b3e2b6f4474120ed3563148f044d56e91 /src/empathy.c | |
parent | 4ed107524df150d0dd7f12e182e832cb2293a82f (diff) | |
download | gsoc2013-empathy-c478047978c6873093ce9e22bf8dfc0ac3ce7a69.tar gsoc2013-empathy-c478047978c6873093ce9e22bf8dfc0ac3ce7a69.tar.gz gsoc2013-empathy-c478047978c6873093ce9e22bf8dfc0ac3ce7a69.tar.bz2 gsoc2013-empathy-c478047978c6873093ce9e22bf8dfc0ac3ce7a69.tar.lz gsoc2013-empathy-c478047978c6873093ce9e22bf8dfc0ac3ce7a69.tar.xz gsoc2013-empathy-c478047978c6873093ce9e22bf8dfc0ac3ce7a69.tar.zst gsoc2013-empathy-c478047978c6873093ce9e22bf8dfc0ac3ce7a69.zip |
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
Diffstat (limited to 'src/empathy.c')
-rw-r--r-- | src/empathy.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/empathy.c b/src/empathy.c index 5f76ecc0b..fb7b5cd31 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; } |