Forráskód Böngészése

cosmetic in https://trac.osgeo.org/grass/changeset/44830 (close checkbox)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44833 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 éve
szülő
commit
ea3d22b9a8
1 módosított fájl, 4 hozzáadás és 3 törlés
  1. 4 3
      gui/wxpython/gui_modules/menuform.py

+ 4 - 3
gui/wxpython/gui_modules/menuform.py

@@ -855,12 +855,13 @@ class mainFrame(wx.Frame):
                              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)