Avoid critical warnings when searching interactively in account tree.

gnc_account_n_children will print those when it is called with NULL.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16393 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2007-08-06 15:40:55 +00:00
parent 9056b19e0c
commit 1cce7a24b7
+1 -1
View File
@@ -667,7 +667,7 @@ gnc_plugin_page_account_tree_selection_changed_cb (GtkTreeSelection *selection,
account = gnc_tree_view_account_get_selected_account (GNC_TREE_VIEW_ACCOUNT(view));
sensitive = (account != NULL);
subaccounts = (gnc_account_n_children(account) != 0);
subaccounts = account && (gnc_account_n_children(account) != 0);
/* Check here for placeholder accounts, etc. */
}