diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 60c03153c..95819a434 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1813,6 +1813,10 @@ class FitItem(SFItem.SFBrowserItem): sFit.deleteFit(self.fitID) + # Notify other areas that a fit has been deleted + wx.PostEvent(self.mainFrame, FitRemoved(fitID=self.fitID)) + + # todo: would a simple RefreshList() work here instead of posting that a stage has been selected? if self.shipBrowser.GetActiveStage() == 5: if fit in self.shipBrowser.lastdata: # remove fit from import cache self.shipBrowser.lastdata.remove(fit) @@ -1822,8 +1826,6 @@ class FitItem(SFItem.SFBrowserItem): else: wx.PostEvent(self.shipBrowser, Stage3Selected(shipID=self.shipID)) - wx.PostEvent(self.mainFrame, FitRemoved(fitID=self.fitID)) - def MouseLeftUp(self, event): if self.dragging and self.dragged: self.OnMouseCaptureLost(event)