fix(ToolMilling): don't iterate over totals rows on excellon table rebuild

This commit is contained in:
Marco Marche
2024-02-14 10:27:36 +01:00
parent 8ee38c8e18
commit 7e72982259

View File

@@ -845,7 +845,8 @@ class ToolMilling(AppTool, Excellon):
def on_exc_rebuild_ui(self):
# read the table tools uid
current_uid_list = []
for row in range(self.ui.tools_table_mill_exc.rowCount()):
# we have (n+2) rows because there are 'n' tools, each a row, plus the last 2 rows for totals.
for row in range(self.ui.tools_table_mill_exc.rowCount() - 2):
uid = int(self.ui.tools_table_mill_exc.item(row, 3).text())
current_uid_list.append(uid)