[GRASS-SVN] r44833 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 3 09:35:54 EST 2011


Author: martinl
Date: 2011-01-03 06:35:54 -0800 (Mon, 03 Jan 2011)
New Revision: 44833

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
cosmetic in r44830 (close checkbox)


Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2011-01-03 14:32:35 UTC (rev 44832)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2011-01-03 14:35:54 UTC (rev 44833)
@@ -855,12 +855,13 @@
                              flag = wx.EXPAND | wx.LEFT | wx.RIGHT | wx.BOTTOM,
                              border = 5)
         
-        closeBox = False
+        hasNew = False
         for p in self.task.params:
             if p.get('age', 'old') ==  'new':
-                closeBox = True
+                hasNew = True
+                break
         
-        if self.get_dcmd is None and closeBox:
+        if self.get_dcmd is None and hasNew:
             # close dialog when command is terminated
             self.closebox = wx.CheckBox(parent = self.panel,
                                         label = _('Close dialog on finish'), style = wx.NO_BORDER)



More information about the grass-commit mailing list