- fixes in Drilling & Milling Tools for the error: "RuntimeError: wrapped C/C++ object of type ... has been deleted"

This commit is contained in:
Marius Stanciu
2021-02-26 02:44:06 +02:00
committed by Marius
parent 9962469663
commit 0f78a8d30d
3 changed files with 8 additions and 3 deletions

View File

@@ -176,9 +176,10 @@ class ToolDrilling(AppTool, Excellon):
if self.app.ui.splitter.sizes()[0] == 0:
self.app.ui.splitter.setSizes([1, 1])
self.set_tool_ui()
AppTool.run(self)
self.set_tool_ui()
self.on_object_changed()
# self.build_tool_ui()

View File

@@ -175,10 +175,10 @@ class ToolMilling(AppTool, Excellon):
if self.app.ui.splitter.sizes()[0] == 0:
self.app.ui.splitter.setSizes([1, 1])
AppTool.run(self)
self.set_tool_ui()
AppTool.run(self)
# reset those objects on a new run
self.target_obj = None
self.obj_name = ''