Revert "Don't clear all items on populate if wanted in Display class. (default - clear all)"
This reverts commit 219c00ac57.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user