[evolution] Bug #631341 - On This Computer/Inbox sub-folders lost
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #631341 - On This Computer/Inbox sub-folders lost
- Date: Thu, 7 Oct 2010 09:46:20 +0000 (UTC)
commit ddcbe32497e2e957468d6572ee648c37df504e20
Author: Milan Crha <mcrha redhat com>
Date: Thu Oct 7 11:45:05 2010 +0200
Bug #631341 - On This Computer/Inbox sub-folders lost
mail/em-folder-tree-model.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index aae547a..1369f3d 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -894,11 +894,18 @@ folder_created_cb (CamelStore *store,
CamelFolderInfo *fi,
EMFolderTreeModel *model)
{
+ EMFolderTreeModelStoreInfo *si;
+
/* We only want created events to do more
* work if we don't support subscriptions. */
if (camel_store_supports_subscriptions (store))
return;
+ /* process "folder-created" event only when store already loaded */
+ si = em_folder_tree_model_lookup_store_info (model, store);
+ if (si == NULL || g_hash_table_size (si->full_hash) == 0)
+ return;
+
folder_subscribed_cb (store, fi, model);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]