From cb5d89c35e4ccafaadfccbd7867832c40f9321a7 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Tue, 7 Dec 2010 20:16:32 +0200 Subject: [PATCH] Revert "Don't clear all items on populate if wanted in Display class. (default - clear all)" This reverts commit 219c00ac578c6d915dcbed62c2060a1bc967de04. --- gui/display.py | 5 ++--- gui/marketBrowser.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/display.py b/gui/display.py index beab32bfc..e799e19a8 100644 --- a/gui/display.py +++ b/gui/display.py @@ -118,7 +118,7 @@ class Display(wx.ListCtrl): for i in xrange(self.imageList.ImageCount - 1, self.imageListBase, -1): self.imageList.Remove(i) - def populate(self, stuff, clearImageList = True): + def populate(self, stuff): selection = [] @@ -128,8 +128,7 @@ class Display(wx.ListCtrl): sel = self.GetNextSelected(sel) self.DeleteAllItems() - if clearImageList: - self.clearItemImages() + self.clearItemImages() if stuff is not None: for id, st in enumerate(stuff): diff --git a/gui/marketBrowser.py b/gui/marketBrowser.py index 6f79609d7..0234f8911 100644 --- a/gui/marketBrowser.py +++ b/gui/marketBrowser.py @@ -334,7 +334,7 @@ class ItemView(d.Display): def populate(self, stuff): stuff.sort(key=self.itemSort) self.active = stuff - d.Display.populate(self, stuff, False) + d.Display.populate(self, stuff) def refresh(self, stuff): stuff.sort(key=self.itemSort)