diff options
author | Milan Crha <mcrha@redhat.com> | 2010-01-19 23:18:14 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-01-19 23:19:56 +0800 |
commit | ad3995870b032a007bbfd488f1adc2d7d5f6b586 (patch) | |
tree | 5759060032704c56410f72cce23fb52c1f11b695 /modules/plugin-lib/e-plugin-lib.c | |
parent | 5f2fd41ef4b791ece98ed932b94b73360bc60e0a (diff) | |
download | gsoc2013-evolution-ad3995870b032a007bbfd488f1adc2d7d5f6b586.tar.gz gsoc2013-evolution-ad3995870b032a007bbfd488f1adc2d7d5f6b586.tar.zst gsoc2013-evolution-ad3995870b032a007bbfd488f1adc2d7d5f6b586.zip |
Bug #602827 - Disable broken plugins automatically
Diffstat (limited to 'modules/plugin-lib/e-plugin-lib.c')
-rw-r--r-- | modules/plugin-lib/e-plugin-lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/plugin-lib/e-plugin-lib.c b/modules/plugin-lib/e-plugin-lib.c index 5541650dfa..f5b5b9dbd1 100644 --- a/modules/plugin-lib/e-plugin-lib.c +++ b/modules/plugin-lib/e-plugin-lib.c @@ -51,11 +51,13 @@ plugin_lib_loadmodule (EPlugin *plugin) return 0; if (plugin_lib->location == NULL) { + plugin->enabled = FALSE; g_warning ("Location not set in plugin '%s'", plugin->name); return -1; } if ((plugin_lib->module = g_module_open (plugin_lib->location, 0)) == NULL) { + plugin->enabled = FALSE; g_warning ("can't load plugin '%s': %s", plugin_lib->location, g_module_error ()); return -1; } |