[GRASS-SVN] r67374 - grass/branches/releasebranch_7_0/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 25 02:59:32 PST 2015


Author: martinl
Date: 2015-12-25 02:59:32 -0800 (Fri, 25 Dec 2015)
New Revision: 67374

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


Modified: grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py	2015-12-24 17:32:34 UTC (rev 67373)
+++ grass/branches/releasebranch_7_0/gui/wxpython/gui_core/forms.py	2015-12-25 10:59:32 UTC (rev 67374)
@@ -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