From 4de25b48a1e23423ed8b214fd72c496c1e0b8a73 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 7 Oct 2019 00:37:39 +0300 Subject: [PATCH] - fixed an conflict in a signal usage that was triggered by Tool SolderPaste when a new project was created --- README.md | 4 ++++ flatcamTools/ToolSolderPaste.py | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7683bc7f..cb091cbc 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing. ================================================= +7.10.2019 + +- fixed an conflict in a signal usage that was triggered by Tool SolderPaste when a new project was created + 6.10.2019 - remade the Mark area Tool in Gerber Editor to be able to clear the markings and also to delete the marked polygons (Gerber apertures) diff --git a/flatcamTools/ToolSolderPaste.py b/flatcamTools/ToolSolderPaste.py index bb2d9ce8..578209dc 100644 --- a/flatcamTools/ToolSolderPaste.py +++ b/flatcamTools/ToolSolderPaste.py @@ -699,7 +699,12 @@ class SolderPaste(FlatCAMTool): :param status: what kind of change happened: 'append' or 'delete' :return: """ - obj_name = obj.options['name'] + try: + obj_name = obj.options['name'] + except AttributeError: + # this happen when the 'delete all' is emitted since in that case the obj is set to None and None has no + # attribute named 'options' + return if status == 'append': idx = self.obj_combo.findText(obj_name)