- 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):
try:
try:
tb.textEdited.disconnect()
tb.textEdited.disconnect(self.on_preferences_edited)
except TypeError:
pass
tb.textEdited.connect(self.on_preferences_edited)
@@ -5198,7 +5198,7 @@ class App(QtCore.QObject):
try:
try:
tb.modificationChanged.disconnect()
tb.modificationChanged.disconnect(self.on_preferences_edited)
except TypeError:
pass
tb.modificationChanged.connect(self.on_preferences_edited)
@@ -5207,7 +5207,7 @@ class App(QtCore.QObject):
try:
try:
tb.toggled.disconnect()
tb.toggled.disconnect(self.on_preferences_edited)
except TypeError:
pass
tb.toggled.connect(self.on_preferences_edited)
@@ -5216,7 +5216,7 @@ class App(QtCore.QObject):
try:
try:
tb.valueChanged.disconnect()
tb.valueChanged.disconnect(self.on_preferences_edited)
except TypeError:
pass
tb.valueChanged.connect(self.on_preferences_edited)
@@ -5225,7 +5225,7 @@ class App(QtCore.QObject):
try:
try:
tb.currentIndexChanged.disconnect()
tb.currentIndexChanged.disconnect(self.on_preferences_edited)
except TypeError:
pass
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 tb in self.ui.pref_tab_area.widget(idx).findChildren(QtCore.QObject):
try:
tb.textEdited.disconnect()
tb.textEdited.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError):
pass
try:
tb.modificationChanged.disconnect()
tb.modificationChanged.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError):
pass
try:
tb.toggled.disconnect()
tb.toggled.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError):
pass
try:
tb.valueChanged.disconnect()
tb.valueChanged.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError):
pass
try:
tb.currentIndexChanged.disconnect()
tb.currentIndexChanged.disconnect(self.on_preferences_edited)
except (TypeError, AttributeError):
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
- 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
- fixed bug recently introduced that when changing the units in the Edit -> Preferences it did not converted the values
- RELEASE 8.92
30.07.2019