XSLForms/Resources/PyQtResources.py | raw changeset files shortlog |
1.1 --- a/XSLForms/Resources/PyQtResources.py Sat Jun 21 01:40:18 2008 +0200 1.2 +++ b/XSLForms/Resources/PyQtResources.py Sat Sep 30 17:44:05 2006 +0000 1.3 @@ -82,7 +82,7 @@ 1.4 found = widget.child(name) 1.5 if found: 1.6 widgets.append(found) 1.7 - for child in widget.children(): 1.8 + for child in widget.children() or []: 1.9 widgets += self.find_widgets(child, name) 1.10 return widgets 1.11