From b0106cc84284bad5d8d84192ff8aab54bb06ae1d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 12 Dec 2013 09:56:06 -0500 Subject: 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. --- mail/em-folder-tree-model.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3