Enable the opening balance tab in the Edit Account dialog.

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.
This commit is contained in:
Ralf Habacker 2021-05-22 14:57:46 +02:00 committed by John Ralls
parent f782ef37a1
commit 0a5f05c0cb

View File

@ -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)