From 20a365a42ee57b19d2c17cf58e778dee162cdeab Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Thu, 11 Aug 2005 06:11:04 +0000 Subject: check if the account is enabled, before adding the store ** Fixes #313057 2005-08-11 Vivek Jain * em-folder-tree-model.c: (account_changed) check if the account is enabled, before adding the store ** Fixes #313057 svn path=/trunk/; revision=30087 --- mail/em-folder-tree-model.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/em-folder-tree-model.c') diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index a5c5330800..478481b144 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -381,7 +381,8 @@ account_changed (EAccountList *accounts, EAccount *account, gpointer user_data) em_folder_tree_model_remove_store (model, si->store); - if (!(uri = account->source->url)) + /* check if store needs to be added at all*/ + if (!account->enabled ||!(uri = account->source->url)) return; camel_exception_init (&ex); -- cgit v1.2.3