Add code for drone splitting, lacking a little amount selection popup

atm
This commit is contained in:
cncfanatics
2010-10-21 16:47:22 +02:00
parent b76a793661
commit 774ac5cf8a
4 changed files with 46 additions and 4 deletions

View File

@@ -49,9 +49,10 @@ class DroneView(d.Display):
cFit = service.Fit.getInstance()
fit = cFit.getFit(event.fitID)
stuff = fit.drones if fit is not None else None
self.populate(stuff)
self.refresh(stuff)
stuff = fit.drones[:] if fit is not None else None
if stuff is not None:
stuff.sort(key=lambda d: d.item.name)
self.update(stuff)
event.Skip()
def addItem(self, event):