Make removal of fighters undoable w/o information loss

This commit is contained in:
DarkPhoenix
2019-04-10 23:42:05 +03:00
parent a8c3612248
commit d2fab0a10e
5 changed files with 40 additions and 23 deletions

View File

@@ -16,7 +16,7 @@ class GuiAddFighterCommand(wx.Command):
self.itemID = itemID
def Do(self):
if self.internal_history.Submit(FitAddFighterCommand(self.fitID, self.itemID)):
if self.internal_history.Submit(FitAddFighterCommand(self.fitID, self.itemID, None, None)):
self.sFit.recalc(self.fitID)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.fitID))
return True