Kaydet (Commit) 99150b0c authored tarafından Colomban Wendling's avatar Colomban Wendling

Check plugin actually has a help function before invoking it

This should not be needed in normal operation, but is safer if the UI
gets out of sync for some reason.
üst 175e45ab
......@@ -1865,7 +1865,10 @@ static void pm_on_plugin_button_clicked(G_GNUC_UNUSED GtkButton *button, gpointe
if (GPOINTER_TO_INT(user_data) == PM_BUTTON_CONFIGURE)
plugin_show_configure(&p->public);
else if (GPOINTER_TO_INT(user_data) == PM_BUTTON_HELP)
{
g_return_if_fail(p->cbs.help != NULL);
p->cbs.help(&p->public, p->cb_data);
}
else if (GPOINTER_TO_INT(user_data) == PM_BUTTON_KEYBINDINGS && p->key_group && p->key_group->plugin_key_count > 0)
keybindings_dialog_show_prefs_scroll(p->info.name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment