mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05: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:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user