Feature Added Remove <item> from Context Menu

This commit is contained in:
Master3See
2013-07-30 20:06:32 -06:00
parent 96bb1b197e
commit 0a162b30e6
22 changed files with 103 additions and 65 deletions

View File

@@ -201,7 +201,7 @@ class ProjectedView(d.Display):
context = (modFullContext,)
else:
context = (("projectedFit",),)
menu = ContextMenu.getMenu((item,), *context)
menu = ContextMenu.getMenu(self, (item,), *context)
if menu is not None:
self.PopupMenu(menu)
elif row == -1 and event.Button == 3:
@@ -209,7 +209,7 @@ class ProjectedView(d.Display):
if fitID is None:
return
context = (("projectedNone",),)
menu = ContextMenu.getMenu([], *context)
menu = ContextMenu.getMenu(self, [], *context)
if menu is not None:
self.PopupMenu(menu)