mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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(" ");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user