[GRASS-SVN] r58734 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 16 03:10:06 PST 2014


Author: martinl
Date: 2014-01-16 03:10:06 -0800 (Thu, 16 Jan 2014)
New Revision: 58734

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI/forms: don't fail when pOpt is None

Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2014-01-16 11:00:52 UTC (rev 58733)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2014-01-16 11:10:06 UTC (rev 58734)
@@ -1653,7 +1653,7 @@
                 options = guidep.split(',')
                 for opt in options:
                     pOpt = self.task.get_param(opt, element = 'name', raiseError = False)
-                    if id:
+                    if pOpt and id:
                         if 'wxId-bind' not in p:
                             p['wxId-bind'] = list()
                         p['wxId-bind'] +=  pOpt['wxId']



More information about the grass-commit mailing list