aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-12-12 22:56:06 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-12-12 23:00:55 +0800
commitb0106cc84284bad5d8d84192ff8aab54bb06ae1d (patch)
treedbba36b95f0072d13193617ace9e65636e5f2af6 /mail
parent6181704f226cd4fdf49d96a8cfe8d49a29a862b0 (diff)
downloadgsoc2013-evolution-b0106cc84284bad5d8d84192ff8aab54bb06ae1d.tar.gz
gsoc2013-evolution-b0106cc84284bad5d8d84192ff8aab54bb06ae1d.tar.zst
gsoc2013-evolution-b0106cc84284bad5d8d84192ff8aab54bb06ae1d.zip
EMFolderTreeModel: Fix subscribing to a folder with children.
Unsubscribe from a folder with children, then re-subscribe. The children will no longer be reachable in an EMFolderTree. This is because we were calling em_folder_tree_model_set_folder_info() claiming we have complete folder subtree info, when in fact we don't.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-tree-model.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 5dbd0a4007..787373c69f 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -1408,8 +1408,10 @@ folder_tree_model_folder_subscribed_cb (CamelStore *store,
gtk_tree_store_append (GTK_TREE_STORE (model), &iter, &parent);
+ /* The CamelFolderInfo does not contain child information,
+ * so pass fully_loaded=FALSE to indicate it's incomplete. */
em_folder_tree_model_set_folder_info (
- EM_FOLDER_TREE_MODEL (model), &iter, store, fi, TRUE);
+ EM_FOLDER_TREE_MODEL (model), &iter, store, fi, FALSE);
}
static void