[GRASS-SVN] r49783 - grass/branches/develbranch_6/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 16 06:10:06 EST 2011


Author: martinl
Date: 2011-12-16 03:10:06 -0800 (Fri, 16 Dec 2011)
New Revision: 49783

Modified:
   grass/branches/develbranch_6/gui/wxpython/gmodeler/model.py
Log:
wxGUI/modeler: fix deletion of intermediate data


Modified: grass/branches/develbranch_6/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gmodeler/model.py	2011-12-16 08:23:08 UTC (rev 49782)
+++ grass/branches/develbranch_6/gui/wxpython/gmodeler/model.py	2011-12-16 11:10:06 UTC (rev 49783)
@@ -526,6 +526,7 @@
         
         # parametrization
         params = self.Parameterize()
+        delInterData = False
         if params:
             dlg = ModelParamDialog(parent = parent,
                                    params = params)
@@ -537,6 +538,7 @@
                 return
             
             err = dlg.GetErrors()
+            delInterData = dlg.DeleteIntermediateData()
             dlg.Destroy()
             if err:
                 GError(parent = parent, message = unicode('\n'.join(err)))
@@ -618,7 +620,7 @@
                                        log = log, onDone = onDone)
                 params['variables']['params'].remove(varDict)
         
-        if dlg.DeleteIntermediateData():
+        if delInterData:
             self.DeleteIntermediateData(log)
         
         # discard values



More information about the grass-commit mailing list