AUDIT: r14700 - gnucash/trunk - Maintain the account hierarchy when reparenting the descendants of a

David Hampton hampton at cvs.gnucash.org
Sun Aug 20 17:52:06 EDT 2006


Author: hampton
Date: 2006-08-20 17:52:04 -0400 (Sun, 20 Aug 2006)
New Revision: 14700
Trac: http://svn.gnucash.org/trac/changeset/14700

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
Log:
Maintain the account hierarchy when reparenting the descendants of a
deleted account.
BP


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-08-20 10:00:01 UTC (rev 14699)
+++ gnucash/trunk/ChangeLog	2006-08-20 21:52:04 UTC (rev 14700)
@@ -1,3 +1,8 @@
+2006-08-20  David Hampton  <hampton at employees.org>
+
+	* src/gnome/gnc-plugin-page-account-tree.c: Maintain the account
+	hierarchy when reparenting the descendants of a deleted account.
+
 2006-08-20  Christian Stimming  <stimming at tuhh.de>
 
 	* src/import-export/hbci/gnc-dtaus-import.[ch], gnc-plugin-hbci.c:

Modified: gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c	2006-08-20 10:00:01 UTC (rev 14699)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c	2006-08-20 21:52:04 UTC (rev 14700)
@@ -1048,7 +1048,7 @@
 	GList *acct_list, *ptr;
 
 	xaccAccountBeginEdit (daa);
-	acct_list = xaccGroupGetSubAccounts(children);
+	acct_list = g_list_copy(xaccGroupGetAccountList(children));
 	for (ptr = acct_list; ptr; ptr = g_list_next(ptr))
 	  xaccAccountInsertSubAccount (daa, ptr->data);
 	g_list_free(acct_list);



More information about the gnucash-changes mailing list