aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-11 03:42:22 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-11 03:42:22 +0800
commit8a7111747f4910248a71fbd6bdae91788b1bb37c (patch)
tree6005a6677ddd1433e2bd8d83bc6cbf4e7359f56f /mail
parent7dcd2540eb0b6eb8dfc8573c96301b334a37d188 (diff)
downloadgsoc2013-evolution-8a7111747f4910248a71fbd6bdae91788b1bb37c.tar
gsoc2013-evolution-8a7111747f4910248a71fbd6bdae91788b1bb37c.tar.gz
gsoc2013-evolution-8a7111747f4910248a71fbd6bdae91788b1bb37c.tar.bz2
gsoc2013-evolution-8a7111747f4910248a71fbd6bdae91788b1bb37c.tar.lz
gsoc2013-evolution-8a7111747f4910248a71fbd6bdae91788b1bb37c.tar.xz
gsoc2013-evolution-8a7111747f4910248a71fbd6bdae91788b1bb37c.tar.zst
gsoc2013-evolution-8a7111747f4910248a71fbd6bdae91788b1bb37c.zip
Don't remove the account from the tree if it's not enabled.
2001-08-10 Peter Williams <peterw@ximian.com> * mail-accounts.c (mail_delete): Don't remove the account from the tree if it's not enabled. svn path=/trunk/; revision=11894
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-accounts.c2
2 files changed, 6 insertions, 1 deletions
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 <peterw@ximian.com>
+
+ * mail-accounts.c (mail_delete): Don't remove the account from the
+ tree if it's not enabled.
+
2001-08-10 Jason Leach <jleach@ximian.com>
* 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 */