mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
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:
@@ -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. */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user