Make sure our handled lists are not sorted
Because we rely on item positions within lists to identify modules for undo/redo stuff
This commit is contained in:
@@ -148,7 +148,7 @@ class CargoView(d.Display):
|
||||
return
|
||||
|
||||
self.original = fit.cargo if fit is not None else None
|
||||
self.cargo = stuff = fit.cargo if fit is not None else None
|
||||
self.cargo = stuff = fit.cargo[:] if fit is not None else None
|
||||
if stuff is not None:
|
||||
stuff.sort(key=lambda c: (c.item.group.category.name, c.item.group.name, c.item.name))
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ class ImplantDisplay(d.Display):
|
||||
return
|
||||
|
||||
self.original = fit.implants if fit is not None else None
|
||||
self.implants = stuff = fit.appliedImplants if fit is not None else None
|
||||
self.implants = stuff = fit.appliedImplants[:] if fit is not None else None
|
||||
if stuff is not None:
|
||||
stuff.sort(key=lambda implant: implant.slot)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user