libgui/GuiFrame.py:onMenu(): clear event queue after calling command function.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2019-09-14 15:20:20 +02:00
parent bdc8bcd494
commit 0e4915351e

View File

@ -168,7 +168,7 @@ class GuiFrame(wx.Frame):
def onMenu(self, event):
eventId = event.GetId()
if eventId in self.itemsById:
self.itemsById[eventId](event)
self.itemsById[eventId](event); wx.SafeYield();
else:
event.Skip()
# }}}