From 63baeda071afb0da57d30dfd55fa40ee5fb40017 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 15 Dec 2019 00:42:07 +0200 Subject: [PATCH] - fixed a bug that created a crash in special conditions; it's related to the QSettings in FlatCAMGui.py --- README.md | 4 ++++ flatcamGUI/FlatCAMGUI.py | 1 + flatcamGUI/PreferencesUI.py | 1 + 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 11da2a4f..10f4c237 100644 --- a/README.md +++ b/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 diff --git a/flatcamGUI/FlatCAMGUI.py b/flatcamGUI/FlatCAMGUI.py index 596302dc..33a88f07 100644 --- a/flatcamGUI/FlatCAMGUI.py +++ b/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': diff --git a/flatcamGUI/PreferencesUI.py b/flatcamGUI/PreferencesUI.py index 77dd2479..a0325b34 100644 --- a/flatcamGUI/PreferencesUI.py +++ b/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)