Skip to content

Commit

Permalink
hex_edit: check for existence of font_map dock pane before attempting…
Browse files Browse the repository at this point in the history
… to update pane title

* subclasses may not use the pane
  • Loading branch information
robmcmullen committed Sep 2, 2017
1 parent 38c5673 commit 10aae06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions omnivore8bit/hex_edit/hex_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,10 @@ def update_fonts(self):
self.font_map.set_font()
self.font_map.Refresh()
pane = self.window.get_dock_pane('hex_edit.font_map')
pane.name = self.machine.font_mapping.name
self.window._aui_manager.Update()
if pane is not None:
# subclasses may not have font map pane
pane.name = self.machine.font_mapping.name
self.window._aui_manager.Update()

@on_trait_change('machine.disassembler_change_event')
def update_disassembler(self):
Expand Down

0 comments on commit 10aae06

Please sign in to comment.