Skip to content

Commit

Permalink
In the account dialog, make sure that the state of the dialog is chec…
Browse files Browse the repository at this point in the history
…ked and not the account type

Fix for #762 mentioned at #820.
  • Loading branch information
rhabacker committed May 22, 2021
1 parent e0c260f commit f880338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/gnome-utils/dialog-account.c
Original file line number Diff line number Diff line change
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 f880338

Please sign in to comment.