From 5a73ddede8353a7d9ad7bdef4e047d21688b21ac Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Mon, 25 Oct 2010 17:19:26 +0300 Subject: [PATCH] Fix some frackups . --- gui/shipBrowser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 8897dbc58..2e0e0500c 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -124,7 +124,9 @@ class ListPane (wx.ScrolledWindow): for widget in self._wList: self.RemoveChild(widget) widget.Hide() - widget.Destroy() + widget.Close() + self._wCount = 0 + self._wList = [] class CategoryItem(wx.Window): def __init__(self, parent, categoryID, shipFittingInfo,