Commit 99f68741 authored by Yann Leboulanger's avatar Yann Leboulanger

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

parent 401e5d28
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment