Browse Source

wxGUI/modeler: fix valid check

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48632 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 years ago
parent
commit
eab8f4e14f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_modules/gmodeler.py

+ 1 - 1
gui/wxpython/gui_modules/gmodeler.py

@@ -1348,7 +1348,7 @@ class ModelFrame(wx.Frame):
             # valid ?
             valid = True
             for p in params['params']:
-                if p.get('required', 'no') != 'no' and \
+                if p.get('required', False) and \
                         p.get('value', '') == '' and \
                         p.get('default', '') == '':
                     valid = False