From: daid Date: Fri, 20 Apr 2012 12:23:11 +0000 (+0200) Subject: On close we have a "deselection" on the listbox, but the 3D preview is deleted then... X-Git-Tag: RC3~42 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ab1e4729ad807507fe0c335be1c7c01577d2c832;p=cura.git 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 --- diff --git a/Cura/gui/projectPlanner.py b/Cura/gui/projectPlanner.py index 14002802..8f93a94b 100644 --- a/Cura/gui/projectPlanner.py +++ b/Cura/gui/projectPlanner.py @@ -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()