diff options
-rw-r--r-- | widgets/table/e-tree-sorted.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/table/e-tree-sorted.c b/widgets/table/e-tree-sorted.c index 7045d63a7d..238007c005 100644 --- a/widgets/table/e-tree-sorted.c +++ b/widgets/table/e-tree-sorted.c @@ -1311,6 +1311,11 @@ e_tree_sorted_node_num_children (ETreeSorted *ets, ETreePath path) { ETreeSortedPath *sorted_path = path; + + if (sorted_path->num_children == -1) { + generate_children(ets, sorted_path); + } + return sorted_path->num_children; } |