From a9a46fcefbb5e9f5833cd1252898d7efb5f21cb6 Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Wed, 28 Jul 2010 04:13:58 +0000 Subject: [PATCH] Fix crash when run with the --add-price-quotes parameter. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19381 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/bin/gnucash-bin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/gnucash-bin.c b/src/bin/gnucash-bin.c index 1e05b805f7..3f8be0bdcd 100644 --- a/src/bin/gnucash-bin.c +++ b/src/bin/gnucash-bin.c @@ -601,7 +601,11 @@ inner_main_add_price_quotes(void *closure, int argc, char **argv) mod = scm_c_resolve_module("gnucash price-quotes"); scm_set_current_module(mod); + /* Don't load the modules since the stylesheet module crashes if the + GUI is not initialized */ +#ifdef PRICE_QUOTES_NEED_MODULES load_gnucash_modules(); +#endif qof_event_suspend(); scm_c_eval_string("(gnc:price-quotes-install-sources)");