talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 247a4522704d7d79748b9b301ecc1c5e11b4ec5d
parent 81b0679965b506fce98bedb70f74f8df70e81312
Author: Michael Rasmussen <mir@datanom.net>
Date:   Sat,  2 Aug 2014 15:37:01 +0200

If cur_folder is not NULL then the folder tree will have cur_folder as root

Diffstat:
Msrc/foldersel.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/foldersel.c b/src/foldersel.c @@ -499,7 +499,11 @@ static void foldersel_set_tree(Folder *cur_folder, FolderSelectionType type) if (FOLDER_TYPE(folder) == F_NEWS) continue; } - + + if (cur_folder && (cur_folder->klass != folder->klass + && strcmp2(cur_folder->name, folder->name) != 0)) + continue; + foldersel_insert_gnode_in_store(tree_store, folder->node, NULL); }