- Some code cleanup

This commit is contained in:
suutari-olli 2016-06-14 23:53:39 +03:00
parent 5a54b2a660
commit d5b11c13d2
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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()