[evolution/wip/gsettings] Bug #632562 - Disabled account in preferences not remove in folder tree



commit ee148f2bbe4a112b3091449a9d336278d778c04e
Author: Milan Crha <mcrha redhat com>
Date:   Wed Nov 3 15:04:45 2010 +0100

    Bug #632562 - Disabled account in preferences not remove in folder tree

 modules/mail/em-account-prefs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/modules/mail/em-account-prefs.c b/modules/mail/em-account-prefs.c
index 5b734a4..e309d2c 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]