aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-21 08:58:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-21 08:58:28 +0800
commit24364797eff3d4416fa93fa860bfdd79349a0b23 (patch)
tree9ce9c3a99323c5d28ab5be1028025713e431f3be /mail/mail-account-gui.c
parenta68b5681353d9999b208cdbada9b40586eb09c18 (diff)
downloadgsoc2013-evolution-24364797eff3d4416fa93fa860bfdd79349a0b23.tar
gsoc2013-evolution-24364797eff3d4416fa93fa860bfdd79349a0b23.tar.gz
gsoc2013-evolution-24364797eff3d4416fa93fa860bfdd79349a0b23.tar.bz2
gsoc2013-evolution-24364797eff3d4416fa93fa860bfdd79349a0b23.tar.lz
gsoc2013-evolution-24364797eff3d4416fa93fa860bfdd79349a0b23.tar.xz
gsoc2013-evolution-24364797eff3d4416fa93fa860bfdd79349a0b23.tar.zst
gsoc2013-evolution-24364797eff3d4416fa93fa860bfdd79349a0b23.zip
Do not add the account here as this is taken care of in
2001-09-20 Jeffrey Stedfast <fejj@ximian.com> * mail-config-druid.c (wizard_finish_cb): Do not add the account here as this is taken care of in mail_account_gui_save() since it has to be able to set the default account. * mail-config.c (mail_config_set_default_account): Don't allow the index to become invalid. * mail-account-gui.c (mail_account_gui_save): Add the account before setting it as the default. svn path=/trunk/; revision=13037
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index d80934b632..9189283afb 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -1615,9 +1615,6 @@ mail_account_gui_save (MailAccountGui *gui)
g_free (account->name);
account->name = new_name;
- if (gtk_toggle_button_get_active (gui->default_account))
- mail_config_set_default_account (account);
-
/* construct the identity */
identity_destroy (account->id);
account->id = g_new0 (MailConfigIdentity, 1);
@@ -1660,6 +1657,10 @@ mail_account_gui_save (MailAccountGui *gui)
account->smime_encrypt_to_self = gtk_toggle_button_get_active (gui->smime_encrypt_to_self);
account->smime_always_sign = gtk_toggle_button_get_active (gui->smime_always_sign);
+ mail_config_add_account (account);
+ if (gtk_toggle_button_get_active (gui->default_account))
+ mail_config_set_default_account (account);
+
mail_autoreceive_setup_account (account->source);
return TRUE;