diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-07-01 09:09:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-07-01 09:11:37 +0300 |
commit | c74626c54fadc55c9291b12c8c354a3a978eb286 (patch) | |
tree | e764499eb5e745fd0696a3c85ae2e4eb6df1874e /release | |
parent | 6f61b6aa445b5a93b7bd8f156b0d0804c6b1d2d6 (diff) |
Fix keymap editing not tagging dirty
Partial fix for T65629
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/userpref.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/userpref.py b/release/scripts/startup/bl_operators/userpref.py index 706afc6dcf8..152dab23dcf 100644 --- a/release/scripts/startup/bl_operators/userpref.py +++ b/release/scripts/startup/bl_operators/userpref.py @@ -286,6 +286,7 @@ class PREFERENCES_OT_keymap_restore(Operator): km = context.keymap km.restore_to_default() + context.preferences.is_dirty = True return {'FINISHED'} @@ -333,6 +334,7 @@ class PREFERENCES_OT_keyitem_add(Operator): km.show_expanded_items = True km.show_expanded_children = True + context.preferences.is_dirty = True return {'FINISHED'} @@ -354,6 +356,8 @@ class PREFERENCES_OT_keyitem_remove(Operator): km = context.keymap kmi = km.keymap_items.from_id(self.item_id) km.keymap_items.remove(kmi) + + context.preferences.is_dirty = True return {'FINISHED'} |