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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 27 11:38:10 PST 2015


Author: martinl
Date: 2015-11-27 11:38:10 -0800 (Fri, 27 Nov 2015)
New Revision: 66941

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI modeler: overwrite flag not saved when reopening module dialog (#2801)


Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2015-11-27 19:34:05 UTC (rev 66940)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2015-11-27 19:38:10 UTC (rev 66941)
@@ -920,9 +920,11 @@
                     f['value'] = True
             
             if f['name'] == 'overwrite':
-                f['value'] = UserSettings.Get(group = 'cmd', key = 'overwrite', subkey = 'enabled')
-                chk.SetValue(f['value'])
-                
+                value = UserSettings.Get(group = 'cmd', key = 'overwrite', subkey = 'enabled')
+                if value: # override only when enabled
+                    f['value'] = value
+                    chk.SetValue(f['value'])
+        
         #
         # parameters
         #



More information about the grass-commit mailing list