aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-accounts.c
diff options
context:
space:
mode:
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 */