Skip to content

Commit

Permalink
Fix a traceback on the ship browser
Browse files Browse the repository at this point in the history
Clicking in empty space produced a traceback. no more!
  • Loading branch information
Corollax committed Dec 26, 2010
1 parent 99dbcf9 commit 11e51a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/PFListPane.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, parent):
self.Bind(wx.EVT_MOUSE_CAPTURE_CHANGED, self.ForceFocus)

def ForceFocus(self,event):
if self.FindFocus().Parent != self:
if self.FindFocus() and self.FindFocus().Parent != self:
self.SetFocus()
event.Skip()

Expand Down

0 comments on commit 11e51a0

Please sign in to comment.