Explorar o código

- fixed an conflict in a signal usage that was triggered by Tool SolderPaste when a new project was created

Marius Stanciu %!s(int64=6) %!d(string=hai) anos
pai
achega
4de25b48a1
Modificáronse 2 ficheiros con 10 adicións e 1 borrados
  1. 4 0
      README.md
  2. 6 1
      flatcamTools/ToolSolderPaste.py

+ 4 - 0
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
 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)
 - remade the Mark area Tool in Gerber Editor to be able to clear the markings and also to delete the marked polygons (Gerber apertures)

+ 6 - 1
flatcamTools/ToolSolderPaste.py

@@ -699,7 +699,12 @@ class SolderPaste(FlatCAMTool):
         :param status: what kind of change happened: 'append' or 'delete'
         :param status: what kind of change happened: 'append' or 'delete'
         :return:
         :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':
         if status == 'append':
             idx = self.obj_combo.findText(obj_name)
             idx = self.obj_combo.findText(obj_name)