If cur_folder is not NULL then the folder tree will have cur_folder as root
authorMichael Rasmussen <mir@datanom.net>
Sat, 2 Aug 2014 13:37:01 +0000 (15:37 +0200)
committerMichael Rasmussen <mir@datanom.net>
Sat, 2 Aug 2014 13:37:01 +0000 (15:37 +0200)
src/foldersel.c

index 02a0982..ac3cdf1 100644 (file)
@@ -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);
        }