Bläddra i källkod

- fixed bug that crashed the software when trying to edit a GUI value in Geometry selected tab without having a tool in the Tools Table

Marius Stanciu 6 år sedan
förälder
incheckning
02c8cfb085
2 ändrade filer med 10 tillägg och 0 borttagningar
  1. 6 0
      FlatCAMObj.py
  2. 4 0
      README.md

+ 6 - 0
FlatCAMObj.py

@@ -4026,6 +4026,12 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
         self.ui.ois_tcz_geo.on_cb_change()
 
     def gui_form_to_storage(self):
+
+        if self.ui.geo_tools_table.rowCount() == 0:
+            # there is no tool in tool table so we can't save the GUI elements values to storage
+            log.debug("FlatCAMGeometry.gui_form_to_storage() --> no tool in Tools Table, aborting.")
+            return
+
         self.ui_disconnect()
         widget_changed = self.sender()
         try:

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 =================================================
 
+30.07.2019
+
+- fixed bug that crashed the software when trying to edit a GUI value in Geometry selected tab without having a tool in the Tools Table
+
 28.07.2019
 
 - fixed issue with not using the current units in the tool tables after unit conversion