From c670e9d15bdaf3c99a42191e48fa315b80800c69 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 9 May 2002 20:06:16 +0000 Subject: Make sure that even if the new source url is NULL, that we preserve the 2002-05-09 Jeffrey Stedfast * mail-account-gui.c (mail_account_gui_save): Make sure that even if the new source url is NULL, that we preserve the enabledness of the source. svn path=/trunk/; revision=16737 --- mail/ChangeLog | 6 ++++++ mail/mail-account-gui.c | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index d71ca32bc0..5ec5c7b1d1 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2002-05-09 Jeffrey Stedfast + + * mail-account-gui.c (mail_account_gui_save): Make sure that even + if the new source url is NULL, that we preserve the enabledness of + the source. + 2002-05-09 Ettore Perazzoli * component-factory.c (add_storage): Pass %FALSE as diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 669be6b39c..463ca3d7f8 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -2006,10 +2006,11 @@ mail_account_gui_save (MailAccountGui *gui) if (account->source->url) { provider = camel_session_get_provider (session, account->source->url, NULL); source_url = provider ? camel_url_new (account->source->url, NULL) : NULL; - - if (old_enabled) - account->source->enabled = TRUE; } + + if (old_enabled) + account->source->enabled = TRUE; + account->source->auto_check = gtk_toggle_button_get_active (gui->source_auto_check); if (account->source->auto_check) account->source->auto_check_time = gtk_spin_button_get_value_as_int (gui->source_auto_check_min); -- cgit v1.2.3