Use event.Skip() instead of expanding/collapsing ourselves, WE'RE LAZY

This commit is contained in:
cncfanatics
2010-08-20 22:16:49 +02:00
parent baf9ef6dd4
commit f4bf237c0d

View File

@@ -121,11 +121,9 @@ class ShipBrowser(wx.Panel):
type, _ = self.shipView.GetPyData(root)
if type == "fit":
self.shipView.EditLabel(root)
else:
if not self.shipView.IsExpanded(root):
self.shipView.Expand(root)
else:
self.shipView.Collapse(root)
event.Skip()
def renameFit(self, event):
root = self.shipView.GetSelection()