diff options
author | Milan Crha <mcrha@redhat.com> | 2014-04-17 20:42:48 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-04-17 20:42:48 +0800 |
commit | 61695f06c1644138ec13c9200daf1044b655e34a (patch) | |
tree | 8291dba2497145ca8c6e995a561699de31182f49 | |
parent | 63741f6ef9ea0c36aaf09f2d14b25039d4a1bc07 (diff) | |
download | gsoc2013-evolution-61695f06c1644138ec13c9200daf1044b655e34a.tar gsoc2013-evolution-61695f06c1644138ec13c9200daf1044b655e34a.tar.gz gsoc2013-evolution-61695f06c1644138ec13c9200daf1044b655e34a.tar.bz2 gsoc2013-evolution-61695f06c1644138ec13c9200daf1044b655e34a.tar.lz gsoc2013-evolution-61695f06c1644138ec13c9200daf1044b655e34a.tar.xz gsoc2013-evolution-61695f06c1644138ec13c9200daf1044b655e34a.tar.zst gsoc2013-evolution-61695f06c1644138ec13c9200daf1044b655e34a.zip |
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
-rw-r--r-- | mail/em-folder-tree-model.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 |