aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-10-07 17:45:05 +0800
committerMilan Crha <mcrha@redhat.com>2010-10-07 17:45:05 +0800
commitddcbe32497e2e957468d6572ee648c37df504e20 (patch)
tree41f168f0b15c95fb6fcef658e73789d3b0b48eb7 /mail
parent2d0af11b43e21e1af20f01fa14c0cef7c3cc646e (diff)
downloadgsoc2013-evolution-ddcbe32497e2e957468d6572ee648c37df504e20.tar
gsoc2013-evolution-ddcbe32497e2e957468d6572ee648c37df504e20.tar.gz
gsoc2013-evolution-ddcbe32497e2e957468d6572ee648c37df504e20.tar.bz2
gsoc2013-evolution-ddcbe32497e2e957468d6572ee648c37df504e20.tar.lz
gsoc2013-evolution-ddcbe32497e2e957468d6572ee648c37df504e20.tar.xz
gsoc2013-evolution-ddcbe32497e2e957468d6572ee648c37df504e20.tar.zst
gsoc2013-evolution-ddcbe32497e2e957468d6572ee648c37df504e20.zip
Bug #631341 - On This Computer/Inbox sub-folders lost
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-tree-model.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index aae547a23d..1369f3d1ea 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);
}