From f13051ae715206f6f081ed60247836d17c14004b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 3 Nov 2010 15:04:45 +0100 Subject: Bug #632562 - Disabled account in preferences not remove in folder tree --- modules/mail/em-account-prefs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/mail/em-account-prefs.c b/modules/mail/em-account-prefs.c index 5b734a4638..e309d2c4ba 100644 --- a/modules/mail/em-account-prefs.c +++ b/modules/mail/em-account-prefs.c @@ -90,8 +90,10 @@ account_prefs_disable_account_cb (EAccountTreeView *tree_view, account_list = e_account_tree_view_get_account_list (tree_view); g_return_if_fail (account_list != NULL); - if (!e_account_list_account_has_proxies (account_list, account)) + if (!e_account_list_account_has_proxies (account_list, account)) { + e_mail_store_remove_by_uri (prefs->priv->session, account->source->url); return; + } parent = gtk_widget_get_toplevel (GTK_WIDGET (tree_view)); parent = gtk_widget_is_toplevel (parent) ? parent : NULL; -- cgit