Skip to content

Commit

Permalink
Merge pull request #1799 from b4n/plugin-manager/selection-on-double-…
Browse files Browse the repository at this point in the history
…click

Fix PM button desynchronization and possible crash
  • Loading branch information
b4n committed Apr 3, 2018
2 parents 11da555 + 373852c commit 4d252c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ static gboolean pm_tree_filter_func(GtkTreeModel *model, GtkTreeIter *iter, gpoi
gtk_tree_model_get(model, iter, PLUGIN_COLUMN_PLUGIN, &plugin, -1);

if (!plugin)
return FALSE;
return TRUE;
key = gtk_entry_get_text(GTK_ENTRY(pm_widgets.filter_entry));

filename = g_path_get_basename(plugin->filename);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 4d252c7

Please sign in to comment.