aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-03 22:04:45 +0800
committerMilan Crha <mcrha@redhat.com>2010-11-03 22:04:45 +0800
commitf13051ae715206f6f081ed60247836d17c14004b (patch)
tree2c494ade5b7750360c1700a11e06cba80e339ffd /modules
parent76afb0dea33fc58274a9845446979ca4793af96c (diff)
downloadgsoc2013-evolution-f13051ae715206f6f081ed60247836d17c14004b.tar
gsoc2013-evolution-f13051ae715206f6f081ed60247836d17c14004b.tar.gz
gsoc2013-evolution-f13051ae715206f6f081ed60247836d17c14004b.tar.bz2
gsoc2013-evolution-f13051ae715206f6f081ed60247836d17c14004b.tar.lz
gsoc2013-evolution-f13051ae715206f6f081ed60247836d17c14004b.tar.xz
gsoc2013-evolution-f13051ae715206f6f081ed60247836d17c14004b.tar.zst
gsoc2013-evolution-f13051ae715206f6f081ed60247836d17c14004b.zip
Bug #632562 - Disabled account in preferences not remove in folder tree
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/em-account-prefs.c4
1 files changed, 3 insertions, 1 deletions
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;