mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
On creating a new account, do not check account types of children.
In that situation, the current accounts type is invalid, so calling xaccAccountTypesCompatible against the chosen type will log an error. Because of the apparent lack of children there is no real problem, so just skip the test. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15678 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
37e232fc10
commit
d630e52fac
@ -466,6 +466,9 @@ make_children_compatible (AccountWindow *aw)
|
||||
|
||||
g_return_if_fail (aw);
|
||||
|
||||
if (aw->dialog_type == NEW_ACCOUNT)
|
||||
return;
|
||||
|
||||
account = aw_get_account (aw);
|
||||
g_return_if_fail (account);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user