From d3d9fa626c2e673927af76442616d225b1f991ff Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 26 Oct 2013 12:11:55 +0200 Subject: gtkui: fixed custom menu item backwards compat with 1.4 api --- plugins/gtkui/actions.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/gtkui/actions.c') diff --git a/plugins/gtkui/actions.c b/plugins/gtkui/actions.c index 72ec3dc8..969e489e 100644 --- a/plugins/gtkui/actions.c +++ b/plugins/gtkui/actions.c @@ -86,7 +86,10 @@ add_mainmenu_actions (void) for (action = actions; action; action = action->next) { char *tmp = NULL; - if (!(action->flags & DB_ACTION_COMMON) || !(action->flags & DB_ACTION_ADD_MENU)) + + int has_addmenu = (action->flags & DB_ACTION_COMMON) && ((action->flags & DB_ACTION_ADD_MENU) | (action->flags & DB_ACTION_USING_API_14)); + + if (!has_addmenu) continue; // 1st check if we have slashes -- cgit v1.2.3