[evolution/gnome-3-10] EMFolderTreeModel: Fix subscribing to a folder with children.



commit 2e6c8d509a9f49ae4708201f6ea250429101410c
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.
    
    (cherry picked from commit b0106cc84284bad5d8d84192ff8aab54bb06ae1d)
    
    Conflicts:
        mail/em-folder-tree-model.c

 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 0e3bb88..425ae10 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -965,7 +965,9 @@ folder_tree_model_folder_subscribed_cb (CamelStore *store,
 
        gtk_tree_store_append (GTK_TREE_STORE (model), &iter, &parent);
 
-       em_folder_tree_model_set_folder_info (model, &iter, si, fi, TRUE);
+       /* The CamelFolderInfo does not contain child information,
+        * so pass fully_loaded=FALSE to indicate it's incomplete. */
+       em_folder_tree_model_set_folder_info (model, &iter, si, fi, FALSE);
 }
 
 static void


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