Fixed context menu getting closed when releasing right mouse button
This commit is contained in:
@@ -42,7 +42,7 @@ class FittingView(d.Display):
|
|||||||
d.Display.__init__(self, parent)
|
d.Display.__init__(self, parent)
|
||||||
self.mainFrame.Bind(FIT_CHANGED, self.fitChanged)
|
self.mainFrame.Bind(FIT_CHANGED, self.fitChanged)
|
||||||
self.Bind(wx.EVT_LEFT_DCLICK, self.removeItem)
|
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
|
self.activeFitID = None
|
||||||
|
|
||||||
#Gets called from the fitMultiSwitch when it decides its time
|
#Gets called from the fitMultiSwitch when it decides its time
|
||||||
@@ -131,4 +131,4 @@ class FittingView(d.Display):
|
|||||||
contexts.append("ship")
|
contexts.append("ship")
|
||||||
|
|
||||||
menu = ContextMenu.getMenu(selection, *contexts)
|
menu = ContextMenu.getMenu(selection, *contexts)
|
||||||
self.PopupMenu(menu)
|
self.PopupMenu(menu)
|
||||||
|
|||||||
Reference in New Issue
Block a user