diff --git a/libgui/GuiFrame.py b/libgui/GuiFrame.py index bb61d8e..d3ff4cd 100644 --- a/libgui/GuiFrame.py +++ b/libgui/GuiFrame.py @@ -152,7 +152,11 @@ class GuiFrame(wx.Frame): # }}} # {{{ onMenu(self, event) def onMenu(self, event): - eventId = event.GetId(); self.itemsById[eventId](event); + eventId = event.GetId() + if eventId in self.itemsById: + self.itemsById[eventId](event) + else: + event.Skip() # }}} # {{{ onMouseWheel(self, event) def onMouseWheel(self, event):