From 9e3f71e15a1016dff6354452eb9aac78601c18b4 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Mon, 14 Feb 2005 15:52:12 +0000 Subject: If the plug-in is not enabled, do nothing 2005-02-14 Rodney Dawes * e-menu.c (emph_construct): If the plug-in is not enabled, do nothing svn path=/trunk/; revision=28787 --- e-util/ChangeLog | 4 ++++ e-util/e-menu.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index b2903ba47b..f4a0eed16c 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,7 @@ +2005-02-14 Rodney Dawes + + * e-menu.c (emph_construct): If the plug-in is not enabled, do nothing + 2005-02-07 Not Zed * e-popup.c (emph_construct_menu): diff --git a/e-util/e-menu.c b/e-util/e-menu.c index d4f32c3327..0f76f301fc 100644 --- a/e-util/e-menu.c +++ b/e-util/e-menu.c @@ -814,6 +814,9 @@ emph_construct(EPluginHook *eph, EPlugin *ep, xmlNodePtr root) d(printf("loading menu hook\n")); + if (!ep->enabled) + return 0; + if (((EPluginHookClass *)emph_parent_class)->construct(eph, ep, root) == -1) return -1; -- cgit v1.2.3