From ad18d0ebe8bbe4c2b51d0f533429d9f9db1d2f57 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 19 Aug 2002 16:57:07 +0000 Subject: (mail_account_gui_save): Fix the saving of STORE_AND_TRANSPORT transports and add a comment so it doesn't get mistakenly unfixed again. svn path=/trunk/; revision=17801 --- mail/ChangeLog | 3 +++ mail/mail-account-gui.c | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index fcc60057df..b0fe5bc5a1 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -4,6 +4,9 @@ may try to change the transport optionmenu (incorrectly in this case), so don't call gtk_option_menu_set_history on it until after emitting "activate" on the source type menuitem. + (mail_account_gui_save): Fix the saving of STORE_AND_TRANSPORT + transports and add a comment so it doesn't get mistakenly unfixed + again. 2002-08-09 Peter Williams diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index e5f1efc51f..d35a3fea57 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1883,9 +1883,10 @@ mail_account_gui_save (MailAccountGui *gui) service_destroy (account->transport); account->transport = g_new0 (MailConfigService, 1); - if (CAMEL_PROVIDER_IS_STORE_AND_TRANSPORT (gui->transport.provider)) - save_service (&gui->transport, gui->extra_config, account->transport); - else + if (CAMEL_PROVIDER_IS_STORE_AND_TRANSPORT (gui->transport.provider)) { + /* The transport URI is the same as the source URI. */ + save_service (&gui->source, gui->extra_config, account->transport); + } else save_service (&gui->transport, NULL, account->transport); /* Check to make sure that the Drafts folder uri is "valid" before assigning it */ -- cgit v1.2.3