- fixed bug recently introduced that when changing the units in the Edit -> Preferences it did not converted the values

- RELEASE 8.92
This commit is contained in:
Marius Stanciu
2019-08-01 00:06:42 +03:00
parent 3fc2015d44
commit 45d89a716e
2 changed files with 11 additions and 10 deletions

View File

@@ -5189,7 +5189,7 @@ class App(QtCore.QObject):
for tb in self.ui.pref_tab_area.widget(idx).findChildren(QtCore.QObject): for tb in self.ui.pref_tab_area.widget(idx).findChildren(QtCore.QObject):
try: try:
try: try:
tb.textEdited.disconnect() tb.textEdited.disconnect(self.on_preferences_edited)
except TypeError: except TypeError:
pass pass
tb.textEdited.connect(self.on_preferences_edited) tb.textEdited.connect(self.on_preferences_edited)
@@ -5198,7 +5198,7 @@ class App(QtCore.QObject):
try: try:
try: try:
tb.modificationChanged.disconnect() tb.modificationChanged.disconnect(self.on_preferences_edited)
except TypeError: except TypeError:
pass pass
tb.modificationChanged.connect(self.on_preferences_edited) tb.modificationChanged.connect(self.on_preferences_edited)
@@ -5207,7 +5207,7 @@ class App(QtCore.QObject):
try: try:
try: try:
tb.toggled.disconnect() tb.toggled.disconnect(self.on_preferences_edited)
except TypeError: except TypeError:
pass pass
tb.toggled.connect(self.on_preferences_edited) tb.toggled.connect(self.on_preferences_edited)
@@ -5216,7 +5216,7 @@ class App(QtCore.QObject):
try: try:
try: try:
tb.valueChanged.disconnect() tb.valueChanged.disconnect(self.on_preferences_edited)
except TypeError: except TypeError:
pass pass
tb.valueChanged.connect(self.on_preferences_edited) tb.valueChanged.connect(self.on_preferences_edited)
@@ -5225,7 +5225,7 @@ class App(QtCore.QObject):
try: try:
try: try:
tb.currentIndexChanged.disconnect() tb.currentIndexChanged.disconnect(self.on_preferences_edited)
except TypeError: except TypeError:
pass pass
tb.currentIndexChanged.connect(self.on_preferences_edited) tb.currentIndexChanged.connect(self.on_preferences_edited)
@@ -5241,27 +5241,27 @@ class App(QtCore.QObject):
for idx in range(self.ui.pref_tab_area.count()): for idx in range(self.ui.pref_tab_area.count()):
for tb in self.ui.pref_tab_area.widget(idx).findChildren(QtCore.QObject): for tb in self.ui.pref_tab_area.widget(idx).findChildren(QtCore.QObject):
try: try:
tb.textEdited.disconnect() tb.textEdited.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError): except (TypeError, AttributeError):
pass pass
try: try:
tb.modificationChanged.disconnect() tb.modificationChanged.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError): except (TypeError, AttributeError):
pass pass
try: try:
tb.toggled.disconnect() tb.toggled.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError): except (TypeError, AttributeError):
pass pass
try: try:
tb.valueChanged.disconnect() tb.valueChanged.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError): except (TypeError, AttributeError):
pass pass
try: try:
tb.currentIndexChanged.disconnect() tb.currentIndexChanged.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError): except (TypeError, AttributeError):
pass pass

View File

@@ -18,6 +18,7 @@ CAD program, and create G-Code for Isolation routing.
- added a detection if any values are changed in the Edit -> Preferences window and on close it will ask the user if he wants to save the changes or not - added a detection if any values are changed in the Edit -> Preferences window and on close it will ask the user if he wants to save the changes or not
- created a new menu entry in the File menu named Recent projects that will hold the recent projects and the previous "Recent files" will hold only the previous loaded files - created a new menu entry in the File menu named Recent projects that will hold the recent projects and the previous "Recent files" will hold only the previous loaded files
- updated all translations for the new strings - updated all translations for the new strings
- fixed bug recently introduced that when changing the units in the Edit -> Preferences it did not converted the values
- RELEASE 8.92 - RELEASE 8.92
30.07.2019 30.07.2019