- 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

This commit is contained in:
Marius Stanciu
2019-07-30 12:35:18 +03:00
committed by Marius
parent 966d42f51f
commit 02c8cfb085
2 changed files with 10 additions and 0 deletions

View File

@@ -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: