aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config-druid.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-config-druid.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-config-druid.c')
-rw-r--r--mail/mail-config-druid.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c
index 13b5919224..34f62c54b2 100644
--- a/mail/mail-config-druid.c
+++ b/mail/mail-config-druid.c
@@ -816,19 +816,15 @@ wizard_finish_cb (EvolutionWizard *wizard,
MailConfigWizard *w)
{
MailAccountGui *gui = w->gui;
-
+
/* Save the settings for that account */
if (mail_account_gui_save (gui) == FALSE)
/* problem. Um, how to keep the druid alive? */
return;
-
- /* Add the account to our list (do it early because future
- steps might want to access config->accounts) */
- mail_config_add_account (gui->account);
-
+
if (gui->account->source)
gui->account->source->enabled = TRUE;
-
+
/* Write out the config info */
mail_config_write ();
mail_account_gui_destroy (gui);