Commit 6328e566 authored by Guillaume Desmottes's avatar Guillaume Desmottes

set the salut-account-created gconf key once the account has been created

parent e18077dd
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment