data.doc = doc;
data.node = node;
data.parent = menu;
- parent = plugin_create(plugin, &data);
+
+ if (plugin_open_full(plugin, TRUE))
+ parent = plugin_create(plugin, &data);
g_free(plugin);
} else
menu = menu_new(title, id, data ? *((ObMenu**)data) : NULL);
data.doc = doc;
data.node = node;
data.parent = menu;
- parent = plugin_create(plugin, &data);
+ if (plugin_open_full(plugin, TRUE))
+ parent = plugin_create(plugin, &data);
g_free(plugin);
} else {
parent = menu;