Fixed bugs:

* Importing 1 fit would open stage3 of that ship, but add incorrect history data.
* Deleting fit from search stage caused blank stage most times, fixed this.
This commit is contained in:
blitzmann
2015-02-08 20:29:54 -05:00
parent 30d2ab23ad
commit cbcd5ccca5
3 changed files with 14 additions and 17 deletions

View File

@@ -599,8 +599,9 @@ class MainFrame(wx.Frame):
def _openAfterImport(self, fits):
if len(fits) > 0:
if len(fits) == 1:
wx.PostEvent(self, FitSelected(fitID=fits[0].ID))
wx.PostEvent(self.shipBrowser, Stage3Selected(shipID=fits[0].shipID, back=False))
fit = fits[0]
wx.PostEvent(self, FitSelected(fitID=fit.ID))
wx.PostEvent(self.shipBrowser, Stage3Selected(shipID=fit.shipID, back=0))
else:
wx.PostEvent(self.shipBrowser, ImportSelected(fits=fits, back=False))