Flush the tree when a visibility filter is applied. Prevents unwanted

nodes from appearing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9648 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2003-10-26 04:11:19 +00:00
parent afe0869516
commit d21bc31d4e

View File

@@ -510,6 +510,10 @@ gnc_tree_view_account_set_filter (GncTreeViewAccount *account_view,
filter_model = gtk_tree_view_get_model (GTK_TREE_VIEW (account_view));
egg_tree_model_filter_set_visible_func (EGG_TREE_MODEL_FILTER (filter_model),
func, data, destroy);
/* Whack any existing levels. The top two levels have been created
* before this routine can be called. */
egg_tree_model_filter_refilter (EGG_TREE_MODEL_FILTER (filter_model));
LEAVE(" ");
}