Dirty hack: in case the fit got deleted don't make a screenshot of it

This commit is contained in:
HomeWorld
2010-12-07 01:15:03 +02:00
parent 271b4e363b
commit 977c24ab52

View File

@@ -405,6 +405,7 @@ class FittingView(d.Display):
return self.FVsnapshot
def MakeSnapshot(self, maxColumns = 1337):
if self.FVsnapshot:
del self.FVsnapshot
@@ -419,7 +420,11 @@ class FittingView(d.Display):
columnsWidths.append(0)
sFit = service.Fit.getInstance()
fit = sFit.getFit(self.activeFitID)
try:
fit = sFit.getFit(self.activeFitID)
except:
return
slotMap = {}
for slotType in Slot.getTypes():
slot = Slot.getValue(slotType)