aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/plugin-lib/e-plugin-lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/plugin-lib/e-plugin-lib.c b/modules/plugin-lib/e-plugin-lib.c
index 1cade4b06d..5541650dfa 100644
--- a/modules/plugin-lib/e-plugin-lib.c
+++ b/modules/plugin-lib/e-plugin-lib.c
@@ -60,6 +60,10 @@ plugin_lib_loadmodule (EPlugin *plugin)
return -1;
}
+ /* If the plugin is disabled, we're done. */
+ if (!plugin->enabled)
+ return 0;
+
if (g_module_symbol (plugin_lib->module, "e_plugin_lib_enable", (gpointer)&enable)) {
if (enable (plugin, TRUE) != 0) {
plugin->enabled = FALSE;