Temporary workaround for crash at startup after r18429.

Before this change, gnucash crashes on start-up with Backtrace:
In unknown file:
   ?: 0* gnc:*book-label*

<unnamed port>: In expression gnc:*book-label*:
<unnamed port>: Unbound variable: gnc:*book-label*

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18430 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2009-11-20 21:12:21 +00:00
parent b578c56b27
commit 812c02be0b

View File

@ -462,8 +462,8 @@ gboolean qof_book_use_trading_accounts (const QofBook *book)
if (options_name == NULL)
{
options_name = get_scm_string ("(car gnc:*kvp-option-path*)");
acct_section = get_scm_string ("gnc:*book-label*");
trading_opt = get_scm_string ("gnc:*trading-accounts*");
//acct_section = get_scm_string ("gnc:*book-label*");
//trading_opt = get_scm_string ("gnc:*trading-accounts*");
if (options_name == NULL || acct_section == NULL || trading_opt == NULL)
{
PWARN ("Unable to find trading account preference");