From 1790a4c5f0286297955f2bf7905d4f05b227c9b9 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 5 Nov 2010 19:46:43 +0200 Subject: [PATCH] Fixed a little oopsie: gtfo if targetWnd is None --- gui/shipBrowser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 73c0f6434..fd36e47c0 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1561,6 +1561,9 @@ class FitItem(wx.Window): msWnd = self.mainFrame.fitMultiSwitch cfitWnd = self.mainFrame.fitMultiSwitch.GetCurrentPage() + if not targetWnd: + return + if targetWnd == cfitWnd: wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fitID)) elif targetWnd == cfitWnd.view: