Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-04 19:48:14 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-04 19:48:14 +0300
commite67df065b8895ad0da15df1326f82051488f72fb (patch)
treee51979f5c28c80eb933a8e1a049266aa28682b69
parent4faf36e3add98d7b693eaeb369ee1c16225f65d8 (diff)
Fix #20561: keymap editing after using search could edit wrong keymap item.
-rw-r--r--release/scripts/ui/space_userpref.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py
index 4c807fd9bd2..571abb39dab 100644
--- a/release/scripts/ui/space_userpref.py
+++ b/release/scripts/ui/space_userpref.py
@@ -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()