forked from openlp/openlp
- Some code cleanup
This commit is contained in:
parent
5a54b2a660
commit
d5b11c13d2
@ -368,6 +368,7 @@ class BibleManager(RegistryProperties):
|
||||
second_web_bible = self.db_cache[second_bible].get_object(BibleMeta, 'download_source')
|
||||
if web_bible or second_web_bible:
|
||||
# If either Bible is Web, cursor is reset to normal and search ends w/o any message.
|
||||
self.check_search_result()
|
||||
self.application.set_normal_cursor()
|
||||
return None
|
||||
# Fetch the results from db. If no results are found, return None, no message is given for this.
|
||||
|
@ -931,8 +931,8 @@ class BibleMediaItem(MediaManagerItem):
|
||||
if not self.quickLockButton.isChecked():
|
||||
self.list_view.clear()
|
||||
self.check_search_result()
|
||||
elif limit == 8 and (len(text) < limit or len(count_spaces_two_chars_text) == 0
|
||||
or len(count_two_chars_text) < 2):
|
||||
elif (limit == 8 and (len(text) < limit or len(count_spaces_two_chars_text) == 0 or
|
||||
len(count_two_chars_text) < 2)):
|
||||
if not self.quickLockButton.isChecked():
|
||||
self.list_view.clear()
|
||||
self.check_search_result_search_while_typing_short()
|
||||
|
Loading…
Reference in New Issue
Block a user