This commit is contained in:
blitzmann
2022-02-03 20:53:04 -05:00
parent b62260cd1f
commit c295482055

View File

@@ -49,7 +49,6 @@ class CalcReplaceLocalModuleCommand(wx.Command):
# relationship via .owner attribute, which is handled by SQLAlchemy
eos.db.flush()
sFit.recalc(fit)
self.savedStateCheckChanges = sFit.checkStates(fit, newMod)
if not self.ignoreRestrictions and not newMod.fits(fit):
pyfalog.warning('Module does not fit')
self.Undo()
@@ -62,6 +61,8 @@ class CalcReplaceLocalModuleCommand(wx.Command):
pyfalog.warning('Invalid charge')
self.Undo()
return False
if self.recalc:
self.savedStateCheckChanges = sFit.checkStates(fit, newMod)
return True
def Undo(self):