aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-account-assistant.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-account-assistant.c')
-rw-r--r--src/empathy-account-assistant.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index 3e565512f..67167f39e 100644
--- a/src/empathy-account-assistant.c
+++ b/src/empathy-account-assistant.c
@@ -35,6 +35,7 @@
#include <libempathy-gtk/empathy-account-widget.h>
#include <libempathy-gtk/empathy-protocol-chooser.h>
#include <libempathy-gtk/empathy-ui-utils.h>
+#include <libempathy-gtk/empathy-conf.h>
#define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT
#include <libempathy/empathy-debug.h>
@@ -235,9 +236,10 @@ account_assistant_account_enabled_cb (GObject *source,
GError *error = NULL;
EmpathyAccountAssistant *self = user_data;
EmpathyAccountAssistantPriv *priv = GET_PRIV (self);
+ const gchar *protocol;
+ TpAccount *account = TP_ACCOUNT (source);
- tp_account_set_enabled_finish (TP_ACCOUNT (source),
- result, &error);
+ tp_account_set_enabled_finish (account, result, &error);
if (error)
{
@@ -245,6 +247,16 @@ account_assistant_account_enabled_cb (GObject *source,
g_error_free (error);
}
+ protocol = tp_account_get_protocol (account);
+ if (!tp_strdiff (protocol, "local-xmpp"))
+ {
+ DEBUG ("Salut account has been created; update gconf key");
+
+ empathy_conf_set_bool (empathy_conf_get (),
+ EMPATHY_PREFS_SALUT_ACCOUNT_CREATED,
+ TRUE);
+ }
+
if (priv->create_enter_resp == RESPONSE_CREATE_STOP)
g_signal_emit_by_name (self, "close");
else