Fix changed shortcuts not being applied till tweak book is restarted

This commit is contained in:
Kovid Goyal 2013-12-10 11:07:05 +05:30
parent 4087a7004f
commit 93ba080098
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def finalize(shortcuts, custom_keys_map={}): # {{{
Resolve conflicts and assign keys to every action in shorcuts, which must
be a OrderedDict. User specified mappings of unique names to keys (as a
list of strings) should be passed in in custom_keys_map. Return a mapping
of unique names to resolved keys. Also sets the set_to_defaul member
of unique names to resolved keys. Also sets the set_to_default member
correctly for each shortcut.
'''
seen, keys_map = {}, {}

View File

@ -101,6 +101,7 @@ class Boss(QObject):
if p.exec_() == p.Accepted:
for ed in editors.itervalues():
ed.apply_settings()
self.gui.keyboard.finalize()
def mark_requested(self, name, action):
self.commit_dirty_opf()