diff --git a/gui/display.py b/gui/display.py index e799e19a8..beab32bfc 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): + def populate(self, stuff, clearImageList = True): selection = [] @@ -128,7 +128,8 @@ class Display(wx.ListCtrl): sel = self.GetNextSelected(sel) self.DeleteAllItems() - self.clearItemImages() + if clearImageList: + self.clearItemImages() if stuff is not None: for id, st in enumerate(stuff): diff --git a/gui/marketBrowser.py b/gui/marketBrowser.py index 0234f8911..6f79609d7 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) + d.Display.populate(self, stuff, False) def refresh(self, stuff): stuff.sort(key=self.itemSort)