Safety check in stage2 callback, we don't want stage 2 items to be shown in stage 1

This commit is contained in:
HomeWorld
2011-01-13 21:05:48 +02:00
parent c76d7af05c
commit cf3550b5bd

View File

@@ -156,6 +156,8 @@ class ShipBrowser(wx.Panel):
return self.RACE_ORDER.index(shipInfo[2]), shipInfo[1]
def stage2Callback(self,data):
if self.GetActiveStage() != 2:
return
categoryID, shipList = data
sFit = service.Fit.getInstance()