Skip to content

Commit

Permalink
Merge Ralf Habacker's 'account-dialog-opa-state-fix' into maint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed May 23, 2021
2 parents 0a5f05c + f880338 commit 2ab5357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/dialog-account.c
Expand Up @@ -213,7 +213,7 @@ gnc_account_opening_balance_button_update (AccountWindow *aw, gnc_commodity *com
Account *ob_account = gnc_account_lookup_by_opening_balance (gnc_book_get_root_account (aw->book), commodity);
gboolean has_splits = (xaccAccountGetSplitList (account) != NULL);

if (xaccAccountGetType (account) != ACCT_TYPE_EQUITY)
if (aw->type != ACCT_TYPE_EQUITY)
{
gtk_widget_set_sensitive (aw->opening_balance_button, FALSE);
return;
Expand Down

0 comments on commit 2ab5357

Please sign in to comment.