diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-02-12 18:34:49 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-02-12 18:34:49 +0800 |
commit | 9651590dfd068b739f52103e34dc96303a21a5a4 (patch) | |
tree | d2da2c9b3e2b6f4474120ed3563148f044d56e91 /src | |
parent | 547f3a0eadda88429d309833094017e6b68e12f3 (diff) | |
download | gsoc2013-empathy-9651590dfd068b739f52103e34dc96303a21a5a4.tar gsoc2013-empathy-9651590dfd068b739f52103e34dc96303a21a5a4.tar.gz gsoc2013-empathy-9651590dfd068b739f52103e34dc96303a21a5a4.tar.bz2 gsoc2013-empathy-9651590dfd068b739f52103e34dc96303a21a5a4.tar.lz gsoc2013-empathy-9651590dfd068b739f52103e34dc96303a21a5a4.tar.xz gsoc2013-empathy-9651590dfd068b739f52103e34dc96303a21a5a4.tar.zst gsoc2013-empathy-9651590dfd068b739f52103e34dc96303a21a5a4.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.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@627 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'src')
-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; } |