[GRASS-SVN] r44834 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 3 09:36:56 EST 2011


Author: martinl
Date: 2011-01-03 06:36:56 -0800 (Mon, 03 Jan 2011)
New Revision: 44834

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
Log:
cosmetic in r44832 (close checkbox)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2011-01-03 14:35:54 UTC (rev 44833)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/menuform.py	2011-01-03 14:36:56 UTC (rev 44834)
@@ -805,12 +805,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