From ab1e4729ad807507fe0c335be1c7c01577d2c832 Mon Sep 17 00:00:00 2001 From: daid Date: Fri, 20 Apr 2012 14:23:11 +0200 Subject: [PATCH] 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 --- Cura/gui/projectPlanner.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.30.2