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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 27 09:55:44 EST 2011


Author: martinl
Date: 2011-11-27 06:55:44 -0800 (Sun, 27 Nov 2011)
New Revision: 49390

Modified:
   grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/gmodeler: minor fixes when running model
		(merge r49389 from devbr6)


Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py	2011-11-27 14:53:44 UTC (rev 49389)
+++ grass/trunk/gui/wxpython/gmodeler/model.py	2011-11-27 14:55:44 UTC (rev 49390)
@@ -511,6 +511,7 @@
                                    style = wx.YES_NO | wx.NO_DEFAULT |
                                    wx.ICON_QUESTION | wx.CENTRE)
             ret = dlg.ShowModal()
+            dlg.Destroy()
             if ret != wx.ID_YES:
                 return
         
@@ -527,6 +528,7 @@
                 return
             
             err = dlg.GetErrors()
+            dlg.Destroy()
             if err:
                 GError(parent = parent, message = unicode('\n'.join(err)))
                 return
@@ -613,9 +615,6 @@
                 for p in item['params']:
                     p['value'] = ''
         
-        if params:
-            dlg.Destroy()
-        
     def DeleteIntermediateData(self, log):
         """!Detele intermediate data"""
         rast, vect, rast3d, msg = self.GetIntermediateData()



More information about the grass-commit mailing list