From 8a7111747f4910248a71fbd6bdae91788b1bb37c Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Fri, 10 Aug 2001 19:42:22 +0000 Subject: Don't remove the account from the tree if it's not enabled. 2001-08-10 Peter Williams * mail-accounts.c (mail_delete): Don't remove the account from the tree if it's not enabled. svn path=/trunk/; revision=11894 --- mail/ChangeLog | 5 +++++ mail/mail-accounts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 37bf8528c2..78bf11c37d 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-08-10 Peter Williams + + * mail-accounts.c (mail_delete): Don't remove the account from the + tree if it's not enabled. + 2001-08-10 Jason Leach * mail-ops.c (remove_folder_get): Remove all the messages from a diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index fe3d737a23..88cb204a87 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -280,7 +280,7 @@ mail_delete (GtkButton *button, gpointer data) account = gtk_clist_get_row_data (dialog->mail_accounts, sel); /* remove it from the folder-tree in the shell */ - if (account->source && account->source->url) + if (account->source && account->source->url && account->source->enabled) mail_remove_storage_by_uri (account->source->url); /* remove it from the config file */ -- cgit v1.2.3