don't crash when there is no result in search window. Fixes #3507

This commit is contained in:
Yann Leboulanger 2007-10-21 08:05:54 +00:00
parent 401e5d2811
commit 99f6874115
1 changed files with 5 additions and 0 deletions

View File

@ -191,6 +191,11 @@ class SearchWindow:
return
self.dataform = dataforms.ExtendForm(node = form)
if len(self.dataform.items) == 0:
# No result
self.label.set_text(_('No result'))
self.label.show()
return
self.data_form_widget.set_sensitive(True)
try: