Commit cacbb649 authored by sumpfralle's avatar sumpfralle

fixed GUI misbehaviour of the "enable" controls in the task list


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@296 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 14845e18
......@@ -795,10 +795,13 @@ class ProjectGui:
self.task_list.append(new_task)
self.update_tasklist_table(self.task_list.index(new_task))
elif action == "toggle_enabled":
if (not current_task_index is None) and (current_task_index < len(self.task_list)):
self.task_list[current_task_index]["enabled"] = not self.task_list[current_task_index]["enabled"]
# update the table values
self.update_tasklist_table(current_task_index)
# "data" contains the row of the clicked checkbox
if not data is None:
current_task_index = int(data)
if (not current_task_index is None) and (current_task_index < len(self.task_list)):
self.task_list[current_task_index]["enabled"] = not self.task_list[current_task_index]["enabled"]
# update the table values
self.update_tasklist_table(current_task_index)
elif action == "generate_all_toolpaths":
self.process_multiple_tasks()
elif action == "generate_one_toolpath":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment