Commits

nneonneo  committed ea126b8
  • Participants
  • Parent commits f1d9b5e

Comments (0)

Files changed (2)

File hachoir-wx/hachoir_wx/field_view/core_type_menu_fwd.py

     def __init__(self, imp):
         self.imp = imp
 
-    def on_core_type_menu_ready(self, dispatcher, view):
+    def on_field_menu_ready(self, dispatcher, view):
         assert view is not None
         view.Bind(wx.EVT_MENU, self.on_type_selected)
 
     def on_type_selected(self, event):
-        self.imp.on_type_selected(event.GetId())
+        try:
+            self.imp.on_type_selected(event.GetId())
+        except KeyError:
+            event.Skip()

File hachoir-wx/hachoir_wx/field_view/field_split_menu_fwd.py

     def __init__(self, imp):
         self.imp = imp
 
-    def on_field_split_menu_ready(self, dispatcher, view):
+    def on_field_menu_ready(self, dispatcher, view):
         assert view is not None
 
         view.Bind(wx.EVT_MENU, self.on_split_bytes,