From 25785e834e1c6c0a06ec38b2766a356e7635f040 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Sun, 20 Aug 2006 21:52:04 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ src/gnome/gnc-plugin-page-account-tree.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index abecb48f9f..c32a607f2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-08-20 David Hampton + + * 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 * src/import-export/hbci/gnc-dtaus-import.[ch], gnc-plugin-hbci.c: diff --git a/src/gnome/gnc-plugin-page-account-tree.c b/src/gnome/gnc-plugin-page-account-tree.c index b47ebb20d6..6e6334abc0 100644 --- a/src/gnome/gnc-plugin-page-account-tree.c +++ b/src/gnome/gnc-plugin-page-account-tree.c @@ -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);