From 10aae068c53513e3822369252961a9ad934ccd1f Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Fri, 1 Sep 2017 22:33:22 -0700 Subject: [PATCH] hex_edit: check for existence of font_map dock pane before attempting to update pane title * subclasses may not use the pane --- omnivore8bit/hex_edit/hex_editor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/omnivore8bit/hex_edit/hex_editor.py b/omnivore8bit/hex_edit/hex_editor.py index 7e3c19f7..91ff6d6e 100644 --- a/omnivore8bit/hex_edit/hex_editor.py +++ b/omnivore8bit/hex_edit/hex_editor.py @@ -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):