diff options
author | Milan Crha <mcrha@redhat.com> | 2010-01-19 23:20:47 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-01-19 23:20:47 +0800 |
commit | 2a2132e7726b6c251869a49351d912e40cb1cdbe (patch) | |
tree | e6cb24aa5c7fe6aeb0be507675b32a3a2edd84a4 | |
parent | 8196bdc0117ce1f25d123bc1b16ec9a047be28e3 (diff) | |
download | gsoc2013-evolution-2a2132e7726b6c251869a49351d912e40cb1cdbe.tar gsoc2013-evolution-2a2132e7726b6c251869a49351d912e40cb1cdbe.tar.gz gsoc2013-evolution-2a2132e7726b6c251869a49351d912e40cb1cdbe.tar.bz2 gsoc2013-evolution-2a2132e7726b6c251869a49351d912e40cb1cdbe.tar.lz gsoc2013-evolution-2a2132e7726b6c251869a49351d912e40cb1cdbe.tar.xz gsoc2013-evolution-2a2132e7726b6c251869a49351d912e40cb1cdbe.tar.zst gsoc2013-evolution-2a2132e7726b6c251869a49351d912e40cb1cdbe.zip |
Bug #602827 - Disable broken plugins automatically
-rw-r--r-- | e-util/e-plugin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c index 3b3d5d215d..984bd41f64 100644 --- a/e-util/e-plugin.c +++ b/e-util/e-plugin.c @@ -998,9 +998,10 @@ epl_loadmodule(EPlugin *ep, gboolean fatal) return 0; if ((epl->module = g_module_open(epl->location, 0)) == NULL) { - if (fatal) + if (fatal) { g_warning("can't load plugin '%s': %s", epl->location, g_module_error()); - else + ep->enabled = FALSE; + } else missing_symbols = g_list_prepend (missing_symbols, g_object_ref (ep)); return -1; } |