From 709ea069c15cddee701e262d6f41a4fe2bb87eab Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Oct 2012 18:46:02 +0000 Subject: fix for the plugins' load order git-svn-id: http://svn.miranda-ng.org/main/trunk@1781 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/newplugins.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 1464c53e1d..38f583b12a 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -359,14 +359,15 @@ int Plugin_UnloadDyn(pluginEntry* p) KillModuleHotkeys(hLangpack); KillModuleSounds(hLangpack); } - - // release default plugin + + Plugin_Uninit(p); + + // load default plugins instead of the unloaded one if ( !(p->pclass & PCLASS_CORE)) for (int i=0; i < SIZEOF(pluginDefault); i++) if (pluginDefault[i].pImpl == p) LoadCorePlugin( pluginDefault[i] ); - Plugin_Uninit(p); return TRUE; } -- cgit v1.2.3