From f5f0ecf0163f3b8cb00f8ccfd98768d6d2cd1652 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sat, 31 Jan 2009 19:50:01 +0000 Subject: [PATCH] Bug #569734: Give the template root account a name The template root account created as part of the scheduled transaction infrastructure should have a name. Various parts of the Gnucash engine get upset if an account doesn't have a name. Perhaps this name should be localized, but the name of the main root account is not localized. Patch by Mike Alexander. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17867 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/SX-book.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/SX-book.c b/src/engine/SX-book.c index 1f0caf56b8..ae7fecb71c 100644 --- a/src/engine/SX-book.c +++ b/src/engine/SX-book.c @@ -116,6 +116,7 @@ sxtg_book_begin (QofBook *book) root = xaccMallocAccount(book); xaccAccountBeginEdit(root); xaccAccountSetType(root, ACCT_TYPE_ROOT); + xaccAccountSetName(root, "Template Root"); xaccAccountCommitEdit(root); gnc_book_set_template_root (book, root); }