mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-22 17:06:36 -06:00
Add hooks just once in app_utils module init.
Also don't try to load imaginary module. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12899 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7bbe9277ba
commit
540cca4e7a
@ -75,11 +75,11 @@ libgncmod_app_utils_LTX_gnc_module_init(int refcount)
|
||||
lmod("(g-wrapped gw-app-utils)");
|
||||
lmod("(gnucash app-utils)");
|
||||
|
||||
gnc_hook_add_dangler(HOOK_STARTUP, (GFunc)gnc_exp_parser_init, NULL);
|
||||
gnc_hook_add_dangler(HOOK_SHUTDOWN, (GFunc)app_utils_shutdown, NULL);
|
||||
|
||||
if (refcount == 0)
|
||||
if (refcount == 0) {
|
||||
gnc_component_manager_init ();
|
||||
gnc_hook_add_dangler(HOOK_STARTUP, (GFunc)gnc_exp_parser_init, NULL);
|
||||
gnc_hook_add_dangler(HOOK_SHUTDOWN, (GFunc)app_utils_shutdown, NULL);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -161,7 +161,6 @@ inner_main (void *closure, int argc, char **argv)
|
||||
|
||||
/* module initializations go here */
|
||||
gnc_module_load("gnucash/app-utils", 0);
|
||||
gnc_module_load("gnucash/gw-engine", 0);
|
||||
gnc_module_load("gnucash/engine", 0);
|
||||
gnc_module_load("gnucash/register/ledger-core", 0);
|
||||
gnc_module_load("gnucash/register/register-core", 0);
|
||||
|
Loading…
Reference in New Issue
Block a user