From d00325470b70674b6f2aaa08bfbcb421197b97fc Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 7 Oct 2010 19:35:58 +0300 Subject: [PATCH] Fixed context menu getting closed when releasing right mouse button --- gui/fittingView.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/fittingView.py b/gui/fittingView.py index 8b94811a6..567a5d1f4 100644 --- a/gui/fittingView.py +++ b/gui/fittingView.py @@ -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) \ No newline at end of file + self.PopupMenu(menu)