Skip to content

Commit

Permalink
Do not allow projection to citadels
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Aug 29, 2016
1 parent f98f6a1 commit c5b78c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gui/builtinContextMenus/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import service
import gui.globalEvents as GE
import wx
import eos.db

class Project(ContextMenu):
def __init__(self):
Expand All @@ -12,6 +13,13 @@ def display(self, srcContext, selection):
if srcContext not in ("marketItemGroup", "marketItemMisc") or self.mainFrame.getActiveFit() is None:
return False

sFit = service.Fit.getInstance()
fitID = self.mainFrame.getActiveFit()
fit = sFit.getFit(fitID)

if fit.isStructure:
return False

item = selection[0]
return item.isType("projected")

Expand Down

0 comments on commit c5b78c2

Please sign in to comment.