aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-accounts.c
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/mail-accounts.c
parent7dcd2540eb0b6eb8dfc8573c96301b334a37d188 (diff)
downloadgsoc2013-evolution-8a7111747f4910248a71fbd6bdae91788b1bb37c.tar.gz
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/mail-accounts.c')
-rw-r--r--mail/mail-accounts.c2
1 files changed, 1 insertions, 1 deletions
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 */