diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-07 01:19:56 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 21:21:07 +0800 |
commit | 1d0f90da95786ef6143460ed7234156ec9c46936 (patch) | |
tree | bbca41d06e8ef4e8aa89a5f5f141cf774eec9cae | |
parent | f9cbc778a336d3a891d67914d289841222fb679b (diff) | |
download | gsoc2013-empathy-1d0f90da95786ef6143460ed7234156ec9c46936.tar gsoc2013-empathy-1d0f90da95786ef6143460ed7234156ec9c46936.tar.gz gsoc2013-empathy-1d0f90da95786ef6143460ed7234156ec9c46936.tar.bz2 gsoc2013-empathy-1d0f90da95786ef6143460ed7234156ec9c46936.tar.lz gsoc2013-empathy-1d0f90da95786ef6143460ed7234156ec9c46936.tar.xz gsoc2013-empathy-1d0f90da95786ef6143460ed7234156ec9c46936.tar.zst gsoc2013-empathy-1d0f90da95786ef6143460ed7234156ec9c46936.zip |
Enable newly created accounts
-rw-r--r-- | src/empathy-account-assistant.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index 5bcd602e7..9291cd30c 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -191,15 +191,21 @@ account_assistant_apply_account_cb (GObject *source, { GError *error = NULL; EmpathyAccountAssistant *self = user_data; + EmpathyAccountSettings *settings = EMPATHY_ACCOUNT_SETTINGS (source); + EmpathyAccount *account; - empathy_account_settings_apply_finish (EMPATHY_ACCOUNT_SETTINGS (source), - result, &error); + empathy_account_settings_apply_finish (settings, result, &error); if (error != NULL) { account_assistant_present_error_page (self, error, PAGE_ENTER_CREATE); g_error_free (error); + return; } + + /* enable the newly created account */ + account = empathy_account_settings_get_account (settings); + empathy_account_set_enabled (account, TRUE); } static void |