From 61695f06c1644138ec13c9200daf1044b655e34a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 17 Apr 2014 14:42:48 +0200 Subject: Newly created folders always marked as having subfolders This corrects, a bit, a regression caused by commit b0106cc8, reported at https://bugzilla.gnome.org/show_bug.cgi?id=722698#c13 --- mail/em-folder-tree-model.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mail') diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 3597b6ec6c..8bbceab85d 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -1429,10 +1429,9 @@ 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, FALSE); + EM_FOLDER_TREE_MODEL (model), &iter, store, fi, + (fi->flags & (CAMEL_FOLDER_NOINFERIORS | CAMEL_FOLDER_NOCHILDREN)) != 0); } static void -- cgit v1.2.3