don't crash when there is no result in search window. Fixes #3507
This commit is contained in:
parent
401e5d2811
commit
99f6874115
|
@ -191,6 +191,11 @@ class SearchWindow:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.dataform = dataforms.ExtendForm(node = form)
|
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)
|
self.data_form_widget.set_sensitive(True)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue