Extra check in ship browser
This commit is contained in:
@@ -165,6 +165,9 @@ class ShipBrowser(wx.Panel):
|
||||
def newFit(self, event):
|
||||
tree = self.getActiveTree()
|
||||
root = tree.GetSelection()
|
||||
if not root.IsOk():
|
||||
return
|
||||
|
||||
type, shipID = tree.GetPyData(root)
|
||||
cFit = service.Fit.getInstance()
|
||||
noChildren = False
|
||||
|
||||
Reference in New Issue
Block a user