aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-account-gui.c7
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 <fejj@ximian.com>
+
+ * 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 <ettore@ximian.com>
* 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);