- some changes in the GUI elements and some updates in the Cutout Tool

This commit is contained in:
Marius Stanciu
2021-01-17 22:04:11 +02:00
committed by Marius
parent bb1c67c513
commit 00a1b72553
4 changed files with 15 additions and 7 deletions

View File

@@ -1297,22 +1297,22 @@ class ToolMilling(AppTool, Excellon):
if isinstance(current_widget, FCCheckBox):
try:
current_widget.stateChanged.disconnect(self.form_to_storage)
except (TypeError, ValueError):
except (TypeError, ValueError, RuntimeError):
pass
if isinstance(current_widget, RadioSet):
try:
current_widget.activated_custom.disconnect(self.form_to_storage)
except (TypeError, ValueError):
except (TypeError, ValueError, RuntimeError):
pass
elif isinstance(current_widget, FCDoubleSpinner) or isinstance(current_widget, FCSpinner):
try:
current_widget.returnPressed.disconnect(self.form_to_storage)
except (TypeError, ValueError):
except (TypeError, ValueError, RuntimeError):
pass
elif isinstance(current_widget, FCComboBox):
try:
current_widget.currentIndexChanged.disconnect(self.form_to_storage)
except (TypeError, ValueError):
except (TypeError, ValueError, RuntimeError):
pass
try: