r15768 - gnucash/branches/2.0 - On creating a new account, do not check account types of children.

Derek Atkins warlord at cvs.gnucash.org
Fri Mar 30 17:56:51 EDT 2007


Author: warlord
Date: 2007-03-30 17:56:51 -0400 (Fri, 30 Mar 2007)
New Revision: 15768
Trac: http://svn.gnucash.org/trac/changeset/15768

Modified:
   gnucash/branches/2.0/
   gnucash/branches/2.0/src/gnome-utils/dialog-account.c
Log:
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.

Merge from r15678.



Property changes on: gnucash/branches/2.0
___________________________________________________________________
Name: svk:merge
   - 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/2.0:697
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:14352
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13282
   + 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/2.0:697
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:14353
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13282

Modified: gnucash/branches/2.0/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/branches/2.0/src/gnome-utils/dialog-account.c	2007-03-30 21:56:33 UTC (rev 15767)
+++ gnucash/branches/2.0/src/gnome-utils/dialog-account.c	2007-03-30 21:56:51 UTC (rev 15768)
@@ -465,6 +465,9 @@
 
   g_return_if_fail (aw);
 
+  if (aw->dialog_type == NEW_ACCOUNT)
+      return;
+
   account = aw_get_account (aw);
   g_return_if_fail (account);
 



More information about the gnucash-changes mailing list