Skip to content
Snippets Groups Projects
Commit 99f68741 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 401e5d28
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment