diff --git a/ChangeLog b/ChangeLog index 9ad4617e..4ac71a5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-03 Nick Treleaven + + * src/prefs.c: + Fix segfault when setting custom keybindings in Prefs dialog. + + 2008-02-29 Nick Treleaven * src/build.c, src/keybindings.c, src/keybindings.h, src/tools.c, diff --git a/src/prefs.c b/src/prefs.c index a32ef7eb..7de67aa4 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -1119,7 +1119,7 @@ static KeyBinding *lookup_kb_from_iter(G_GNUC_UNUSED GtkTreeModel *model, GtkTre /* lookup the parent to get group index */ gtk_tree_model_iter_parent(GTK_TREE_MODEL(store), &parent, iter); - gtk_tree_model_get(GTK_TREE_MODEL(store), iter, KB_TREE_INDEX, &group_idx, -1); + gtk_tree_model_get(GTK_TREE_MODEL(store), &parent, KB_TREE_INDEX, &group_idx, -1); return keybindings_lookup_item(group_idx, keybinding_idx); }