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
This commit is contained in:
Mike Alexander 2010-07-28 04:13:58 +00:00
parent 4bc072690b
commit a9a46fcefb

View File

@ -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)");