- Drilling Tool - fixed an issue when Drilling Tool is open and the last Excellon object is deleted

This commit is contained in:
Marius Stanciu
2021-01-28 21:09:59 +02:00
committed by Marius
parent de97d60b9a
commit 35c8fafddd
2 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,9 @@ CHANGELOG for FlatCAM beta
- some fixes in Drilling Tool and in camlib.py file - some fixes in Drilling Tool and in camlib.py file
- working on Milling Tool - working on Milling Tool
- working in Drilling Tool to make it more robust - working in Drilling Tool to make it more robust
- Drilling Tool - fixed an issue with dropping the changes done in the UI
- Drilling Tool - fixed an issue when Drilling Tool is open and the last Excellon object is deleted
21.01.2021 21.01.2021
- added ability to see the verbose log when importing SVG's (if set in preferences) - added ability to see the verbose log when importing SVG's (if set in preferences)

View File

@@ -402,13 +402,13 @@ class ToolDrilling(AppTool, Excellon):
# reset the Excellon preprocessor combo # reset the Excellon preprocessor combo
self.ui.pp_excellon_name_cb.clear() self.ui.pp_excellon_name_cb.clear()
# populate Excellon preprocessor combobox list # populate Excellon preprocessor combobox list
if loaded_obj.options['tools_drill_ppname_e'] == 'Check_points': if loaded_obj and loaded_obj.options['tools_drill_ppname_e'] == 'Check_points':
pp_list = ['Check_points'] pp_list = ['Check_points']
else: else:
pp_list = [] pp_list = []
for name in self.app.preprocessors.keys(): for name in self.app.preprocessors.keys():
# the HPGL preprocessor or Paste_ are not for Excellon job therefore don't add it # the HPGL preprocessor or Paste_ are not for Excellon job therefore don't add it
if name in ['hpgl', 'Paste_1']: if name in ['hpgl', 'Paste_1', 'Check_points']:
continue continue
pp_list.append(name) pp_list.append(name)
pp_list.sort() pp_list.sort()