[GRASS-SVN] r49389 - grass/branches/develbranch_6/gui/wxpython/gui_modules

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


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

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
Log:
wxGUI/gmodeler: minor fixes when running model


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-11-27 14:07:24 UTC (rev 49388)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gmodeler.py	2011-11-27 14:53:44 UTC (rev 49389)
@@ -552,6 +552,7 @@
                                    style = wx.YES_NO | wx.NO_DEFAULT |
                                    wx.ICON_QUESTION | wx.CENTRE)
             ret = dlg.ShowModal()
+            dlg.Destroy()
             if ret != wx.ID_YES:
                 return
         
@@ -568,6 +569,7 @@
                 return
             
             err = dlg.GetErrors()
+            dlg.Destroy()
             if err:
                 GError(parent = parent, message = unicode('\n'.join(err)))
                 return
@@ -654,9 +656,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