Fix segfault when setting custom keybindings in Prefs dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2299 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
ee26ac9254
commit
41dc0112cd
@ -1,3 +1,9 @@
|
||||
2008-03-03 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/prefs.c:
|
||||
Fix segfault when setting custom keybindings in Prefs dialog.
|
||||
|
||||
|
||||
2008-02-29 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/build.c, src/keybindings.c, src/keybindings.h, src/tools.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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user