瀏覽代碼

wxGUI/forms: don't fail when pOpt is None

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58734 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父節點
當前提交
be7a5617b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -1653,7 +1653,7 @@ class CmdPanel(wx.Panel):
                 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']