Skip to content

Commit

Permalink
Enable the opening balance tab in the Edit Account dialog.
Browse files Browse the repository at this point in the history
When the account has no splits. This enables a user who meant to add an
opening account either in the Account Hierarchy Assistant or the New
Account dialog to do so more easily than by creating such a transaction
by hand.
  • Loading branch information
rhabacker authored and jralls committed May 23, 2021
1 parent f782ef3 commit 0a5f05c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnucash/gnome-utils/dialog-account.c
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,8 @@ gnc_ui_edit_account_window(GtkWindow *parent, Account *account)
gnc_resume_gui_refresh ();

gtk_widget_show_all (aw->dialog);
gtk_widget_hide (aw->opening_balance_page);
if (xaccAccountGetSplitList (account) != NULL)
gtk_widget_hide (aw->opening_balance_page);

parent_acct = gnc_account_get_parent (account);
if (parent_acct == NULL)
Expand Down

0 comments on commit 0a5f05c

Please sign in to comment.