add a debugging note, for later review ...

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4612 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-06-11 05:32:08 +00:00
parent 8a48229cb3
commit 2e9d57dc47

View File

@ -1639,6 +1639,14 @@ gnc_account_window_create(AccountWindow *aw)
aw->parent_tree = gnc_account_tree_new_with_root(aw->top_level_account); aw->parent_tree = gnc_account_tree_new_with_root(aw->top_level_account);
gtk_clist_column_titles_hide(GTK_CLIST(aw->parent_tree)); gtk_clist_column_titles_hide(GTK_CLIST(aw->parent_tree));
gnc_account_tree_hide_all_but_name(GNC_ACCOUNT_TREE(aw->parent_tree)); gnc_account_tree_hide_all_but_name(GNC_ACCOUNT_TREE(aw->parent_tree));
/* hack alert -- why do we need to refresh just to put up an account
* edit window? This refresh triggers a massive retraversal
* of the price database (presumably to compute account balances)
* and can suck up a lot of cpu juice from the SQL backend as
* a result. We should only refresh the account names, not
* the balances here.
*/
gnc_account_tree_refresh(GNC_ACCOUNT_TREE(aw->parent_tree)); gnc_account_tree_refresh(GNC_ACCOUNT_TREE(aw->parent_tree));
gnc_account_tree_expand_account(GNC_ACCOUNT_TREE(aw->parent_tree), gnc_account_tree_expand_account(GNC_ACCOUNT_TREE(aw->parent_tree),
aw->top_level_account); aw->top_level_account);