Skip to content

Commit

Permalink
[dialog-account] don't use xaccAccountCountSplits
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Dec 28, 2020
1 parent b1f9e8e commit bd7b77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/dialog-account.c
Expand Up @@ -211,7 +211,7 @@ gnc_account_opening_balance_button_update (AccountWindow *aw, gnc_commodity *com
{
Account *account = aw_get_account (aw);
Account *ob_account = gnc_account_lookup_by_opening_balance (gnc_book_get_root_account (aw->book), commodity);
gboolean has_splits = xaccAccountCountSplits (account, FALSE) > 0;
gboolean has_splits = (xaccAccountGetSplitList (account) != NULL);

if (xaccAccountGetType (account) != ACCT_TYPE_EQUITY)
{
Expand Down

0 comments on commit bd7b77b

Please sign in to comment.