diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-04 18:46:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-04 18:46:02 +0000 |
commit | 709ea069c15cddee701e262d6f41a4fe2bb87eab (patch) | |
tree | 78ed39bea7d46f687df3fe3ccdce285f7f49d5bc /src/modules/plugins | |
parent | e6d5abebb43fbbc00389a6528f7752d7ba4d96da (diff) |
fix for the plugins' load order
git-svn-id: http://svn.miranda-ng.org/main/trunk@1781 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/plugins')
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 7 |
1 files 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;
}
|