Fix #20561: keymap editing after using search could edit wrong keymap item.

This commit is contained in:
Brecht Van Lommel 2010-01-04 16:48:14 +00:00
parent 4faf36e3ad
commit e67df065b8

@ -1475,11 +1475,11 @@ class USERPREF_PT_input(bpy.types.Panel):
filter = kc.filter.lower()
for km in kc.keymaps:
km = km.active()
filtered_items = [kmi for kmi in km.items if filter in kmi.name.lower()]
if len(filtered_items) != 0:
km = km.active()
layout.set_context_pointer("keymap", km)
col = layout.column()