From f88033850c8ffc5f6cd1162abd4bd31a7e0e436c Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 22 May 2021 12:55:19 +0200 Subject: [PATCH] In the account dialog, make sure that the state of the dialog is checked and not the account type Fix for #762 mentioned at #820. --- gnucash/gnome-utils/dialog-account.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/gnome-utils/dialog-account.c b/gnucash/gnome-utils/dialog-account.c index d90bc06dfee..d05ee6feadc 100644 --- a/gnucash/gnome-utils/dialog-account.c +++ b/gnucash/gnome-utils/dialog-account.c @@ -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;