mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 18:30:23 -06:00
[dialog-account] don't use xaccAccountCountSplits
This commit is contained in:
parent
b1f9e8e040
commit
bd7b77b900
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user