[GRASS-SVN] r66947 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 27 15:43:18 PST 2015


Author: martinl
Date: 2015-11-27 15:43:18 -0800 (Fri, 27 Nov 2015)
New Revision: 66947

Modified:
   grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/modeler: fix setting parametrized options multiple times

Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py	2015-11-27 23:16:40 UTC (rev 66946)
+++ grass/trunk/gui/wxpython/gmodeler/model.py	2015-11-27 23:43:18 UTC (rev 66947)
@@ -1344,10 +1344,10 @@
                     action = rel.GetTo()
                 else:
                     action = rel.GetFrom()
-                
+
                 task = GUI(show = None).ParseCommand(cmd = action.GetLog(string = False))
                 task.set_param(rel.GetLabel(), self.value)
-                action.SetParams(params = task.get_options())
+                action.MergeParams(task.get_options())
         
     def GetPropDialog(self):
         """Get properties dialog"""



More information about the grass-commit mailing list