r19381 - gnucash/trunk/src/bin - Fix crash when run with the --add-price-quotes parameter.

Mike Alexander mta at code.gnucash.org
Wed Jul 28 00:13:58 EDT 2010


Author: mta
Date: 2010-07-28 00:13:58 -0400 (Wed, 28 Jul 2010)
New Revision: 19381
Trac: http://svn.gnucash.org/trac/changeset/19381

Modified:
   gnucash/trunk/src/bin/gnucash-bin.c
Log:
Fix crash when run with the --add-price-quotes parameter.

Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2010-07-28 03:48:07 UTC (rev 19380)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2010-07-28 04:13:58 UTC (rev 19381)
@@ -601,7 +601,11 @@
     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)");



More information about the gnucash-changes mailing list