Sfoglia il codice sorgente

- fixed a bug that created a crash in special conditions; it's related to the QSettings in FlatCAMGui.py

Marius Stanciu 6 anni fa
parent
commit
63baeda071
3 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 4 0
      README.md
  2. 1 0
      flatcamGUI/FlatCAMGUI.py
  3. 1 0
      flatcamGUI/PreferencesUI.py

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 =================================================
 
+15.12.2019
+
+- fixed a bug that created a crash in special conditions; it's related to the QSettings in FlatCAMGui.py
+
 14.12.2019
 
 - finished the strings update in the Google-translated Spanish

+ 1 - 0
flatcamGUI/FlatCAMGUI.py

@@ -2099,6 +2099,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
         self.lock_action.setText(_("Lock Toolbars"))
         self.lock_action.setCheckable(True)
 
+        settings = QSettings("Open Source", "FlatCAM")
         if settings.contains("toolbar_lock"):
             lock_val = settings.value('toolbar_lock')
             if lock_val == 'true':

+ 1 - 0
flatcamGUI/PreferencesUI.py

@@ -886,6 +886,7 @@ class GeneralGUISetGroupUI(OptionsGroupUI):
             _("Enable display of the splash screen at application startup.")
         )
         self.splash_cb = FCCheckBox()
+
         settings = QSettings("Open Source", "FlatCAM")
         if settings.value("splash_screen"):
             self.splash_cb.set_value(True)