mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 21:19:16 -06:00
Fix double registration of backends
This caused all business objects to be saved twice, breaking at least the xml data files upon saving.
This commit is contained in:
parent
9d75378953
commit
8214e526a7
@ -56,8 +56,6 @@ gpointer g_error_cb_data;
|
||||
static void
|
||||
gnc_engine_init_part1()
|
||||
{
|
||||
if (1 == engine_is_initialized) return;
|
||||
|
||||
/* initialize QOF */
|
||||
qof_init();
|
||||
|
||||
@ -137,6 +135,8 @@ gnc_engine_init_part3(int argc, char ** argv)
|
||||
void
|
||||
gnc_engine_init(int argc, char ** argv)
|
||||
{
|
||||
if (1 == engine_is_initialized) return;
|
||||
|
||||
gnc_engine_init_part1();
|
||||
gnc_engine_init_part2();
|
||||
gnc_engine_init_part3(argc, argv);
|
||||
@ -145,6 +145,8 @@ gnc_engine_init(int argc, char ** argv)
|
||||
void
|
||||
gnc_engine_init_static(int argc, char ** argv)
|
||||
{
|
||||
if (1 == engine_is_initialized) return;
|
||||
|
||||
gnc_engine_init_part1();
|
||||
gnc_engine_init_part3(argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user