From cf3550b5bd0bccc0d7bc373dbf76ca0a81b533a5 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 13 Jan 2011 21:05:48 +0200 Subject: [PATCH] Safety check in stage2 callback, we don't want stage 2 items to be shown in stage 1 --- gui/shipBrowser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 6d81765a0..9e6204279 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -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()