Maintain the account hierarchy when reparenting the descendants of a

deleted account.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14700 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2006-08-20 21:52:04 +00:00
parent 088a1f9e26
commit 25785e834e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-08-20 David Hampton <hampton@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@tuhh.de>
* src/import-export/hbci/gnc-dtaus-import.[ch], gnc-plugin-hbci.c:

View File

@ -1048,7 +1048,7 @@ gnc_plugin_page_account_tree_cmd_delete_account (GtkAction *action, GncPluginPag
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);