From ee407913c3f46763e8f90f8bdb97d7b95ef93bdc Mon Sep 17 00:00:00 2001 From: blitzman Date: Fri, 24 Feb 2017 00:11:24 -0500 Subject: [PATCH] Fix for #1005 --- gui/shipBrowser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index cf51788eb..c751cf2f3 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -692,7 +692,8 @@ class ShipBrowser(wx.Panel): # set map & cache of fittings per category for cat in self.categoryList: itemIDs = [x.ID for x in cat.items] - self.categoryFitCache[cat.ID] = sFit.countFitsWithShip(itemIDs) > 1 + num = sFit.countFitsWithShip(itemIDs) + self.categoryFitCache[cat.ID] = num > 0 for ship in self.categoryList: if self.filterShipsWithNoFits and not self.categoryFitCache[ship.ID]: