aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/em-folder-tree-model.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6ea038aaeb..0b37eadb68 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-11 Vivek Jain <jvivek@novell.com>
+
+ * em-folder-tree-model.c: (account_changed)
+ check if the account is enabled, before adding the store
+ ** Fixes #313057
+
2005-08-11 Parthasarathi Susarla <sparthasarathi@novell.com>
* em-folder-view.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);