We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f3a69 commit c7074f4Copy full SHA for c7074f4
1 file changed
gui/builtinContextMenus/fitAddCurrentlyOpen.py
@@ -47,6 +47,8 @@ def getSubMenu(self, callingWindow, context, rootMenu, i, pitem):
47
if isinstance(page, BlankPage):
48
continue
49
fit = sFit.getFit(page.activeFitID, basic=True)
50
+ if fit is None:
51
+ continue
52
id = ContextMenuUnconditional.nextID()
53
mitem = wx.MenuItem(rootMenu, id, "{}: {}".format(fit.ship.item.name, fit.name))
54
bindmenu.Bind(wx.EVT_MENU, self.handleSelection, mitem)
0 commit comments