On close we have a "deselection" on the listbox, but the 3D preview is deleted then already, so we do not need to do a refresh then

This commit is contained in:
daid 2012-04-20 14:23:11 +02:00
parent 74d7b92dc4
commit ab1e4729ad

View file

@ -162,6 +162,8 @@ class projectPlanner(wx.Frame):
self.preview.Refresh()
def OnListSelect(self, e):
if self.listbox.GetSelection() == -1:
return
self.selection = self.list[self.listbox.GetSelection()]
self.preview.Refresh()