From 28b71bab58b9438edab60abb6fb9675da0314db1 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 28 Jul 2019 12:03:00 +0100 Subject: [PATCH] Change the shutdown hook for the plugin manager When quitting with multiple windows, as the first window closes the plugin manager is shutdown and so the plugins for subsequent windows can not remove the preference callbacks that were setup so move the manager shutdown hook to HOOK_SHUTDOWN as opposed to HOOK_UI_SHUTDOWN. --- gnucash/gnome-utils/gnc-plugin-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/gnome-utils/gnc-plugin-manager.c b/gnucash/gnome-utils/gnc-plugin-manager.c index 73fb9ebeac..822fec2bac 100644 --- a/gnucash/gnome-utils/gnc-plugin-manager.c +++ b/gnucash/gnome-utils/gnc-plugin-manager.c @@ -66,7 +66,7 @@ gnc_plugin_manager_get (void) { singleton = g_object_new (GNC_TYPE_PLUGIN_MANAGER, NULL); - gnc_hook_add_dangler (HOOK_UI_SHUTDOWN, + gnc_hook_add_dangler (HOOK_SHUTDOWN, gnc_plugin_manager_shutdown, NULL); }