[evolution] EMFolderTreeModel: Fix subscribing to a folder with children.



commit b0106cc84284bad5d8d84192ff8aab54bb06ae1d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Dec 12 09:56:06 2013 -0500

    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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 5dbd0a4..787373c 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]