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:
parent
74d7b92dc4
commit
ab1e4729ad
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue