Parcourir la source

wxGUI/forms: fix overwrite flag from settings

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58416 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa il y a 11 ans
Parent
commit
5b2b764491
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      gui/wxpython/gui_core/forms.py

+ 3 - 2
gui/wxpython/gui_core/forms.py

@@ -906,9 +906,10 @@ class CmdPanel(wx.Panel):
                 if f['name'] == vq:
                     chk.SetValue(True)
                     f['value'] = True
-            elif f['name'] == 'overwrite' and 'value' not in f:
-                chk.SetValue(UserSettings.Get(group = 'cmd', key = 'overwrite', subkey = 'enabled'))
+            
+            if f['name'] == 'overwrite':
                 f['value'] = UserSettings.Get(group = 'cmd', key = 'overwrite', subkey = 'enabled')
+                chk.SetValue(f['value'])
                 
         #
         # parameters