Fixed context menu getting closed when releasing right mouse button

This commit is contained in:
HomeWorld
2010-10-07 19:35:58 +03:00
parent 2e51ffde13
commit d00325470b

View File

@@ -42,7 +42,7 @@ class FittingView(d.Display):
d.Display.__init__(self, parent)
self.mainFrame.Bind(FIT_CHANGED, self.fitChanged)
self.Bind(wx.EVT_LEFT_DCLICK, self.removeItem)
self.Bind(wx.EVT_RIGHT_DOWN, self.scheduleMenu)
self.Bind(wx.EVT_LIST_ITEM_RIGHT_CLICK, self.scheduleMenu)
self.activeFitID = None
#Gets called from the fitMultiSwitch when it decides its time
@@ -131,4 +131,4 @@ class FittingView(d.Display):
contexts.append("ship")
menu = ContextMenu.getMenu(selection, *contexts)
self.PopupMenu(menu)
self.PopupMenu(menu)