forked from openlp/openlp
Dont try to display search results if there are none!
This commit is contained in:
parent
1d377e42cb
commit
04c719e807
@ -732,10 +732,11 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
self.list_view.clear()
|
self.list_view.clear()
|
||||||
items = self.build_display_results(self.bible, self.second_bible, self.search_results)
|
if self.search_results:
|
||||||
for item in items:
|
items = self.build_display_results(self.bible, self.second_bible, self.search_results)
|
||||||
self.list_view.addItem(item)
|
for item in items:
|
||||||
self.list_view.selectAll()
|
self.list_view.addItem(item)
|
||||||
|
self.list_view.selectAll()
|
||||||
self.search_results = []
|
self.search_results = []
|
||||||
self.second_search_results = []
|
self.second_search_results = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user