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

This commit is contained in:
Marius Stanciu
2019-12-15 00:42:07 +02:00
committed by Marius
parent 72a5ba868e
commit 63baeda071
3 changed files with 6 additions and 0 deletions

View File

@@ -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':