[GRASS-SVN] r58416 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 8 13:58:21 PST 2013


Author: martinl
Date: 2013-12-08 13:58:21 -0800 (Sun, 08 Dec 2013)
New Revision: 58416

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: fix overwrite flag from settings

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2013-12-08 21:51:51 UTC (rev 58415)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2013-12-08 21:58:21 UTC (rev 58416)
@@ -906,9 +906,10 @@
                 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



More information about the grass-commit mailing list