Fix #466 (Changing T3 subsystems confuses the fitting window)

This commit is contained in:
DarkPhoenix
2012-01-25 02:26:30 +04:00
parent b2e3cb50dd
commit b066760cc8

View File

@@ -271,7 +271,8 @@ class FittingView(d.Display):
col = self.getColumn(event.Position)
if col != self.getColIndex(State):
cFit = service.Fit.getInstance()
populate = cFit.removeModule(self.activeFitID, self.mods[self.GetItemData(row)].position)
fit = cFit.getFit(self.activeFitID)
populate = cFit.removeModule(self.activeFitID, fit.modules.index(self.mods[self.GetItemData(row)]))
if populate is not None:
if populate: self.slotsChanged()