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:
Andreas Köhler 2007-03-04 00:21:11 +00:00
parent 37e232fc10
commit d630e52fac

View File

@ -466,6 +466,9 @@ make_children_compatible (AccountWindow *aw)
g_return_if_fail (aw); g_return_if_fail (aw);
if (aw->dialog_type == NEW_ACCOUNT)
return;
account = aw_get_account (aw); account = aw_get_account (aw);
g_return_if_fail (account); g_return_if_fail (account);