From d630e52fac6fe563b646a2f8461ad1a733dc1e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Sun, 4 Mar 2007 00:21:11 +0000 Subject: [PATCH] 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 --- src/gnome-utils/dialog-account.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gnome-utils/dialog-account.c b/src/gnome-utils/dialog-account.c index f61ec56566..3613536033 100644 --- a/src/gnome-utils/dialog-account.c +++ b/src/gnome-utils/dialog-account.c @@ -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);