- Fixed over idented line on def closeEvent(self, event):

- Added a comment explaing the ' ' in Bible book name auto completion.
This commit is contained in:
Olli Suutari 2017-06-05 08:53:47 +03:00
parent db86f45bd7
commit a703294db2
2 changed files with 3 additions and 1 deletions

View File

@ -414,6 +414,8 @@ class BibleMediaItem(MediaManagerItem):
if self.bible:
book_data = self.get_common_books(self.bible, self.second_bible)
language_selection = self.plugin.manager.get_language_selection(self.bible.name)
# Get book names + add a space to the end. Thus Psalm23 becomes Psalm 23
# when auto complete is used and user does not need to add the space manually.
books = [book.get_name(language_selection) + ' ' for book in book_data]
books.sort(key=get_locale_key)
set_case_insensitive_completer(books, self.search_edit)

View File

@ -83,7 +83,7 @@ class DuplicateSongRemovalForm(OpenLPWizard, RegistryProperties):
self.cancel_button.clicked.connect(self.on_wizard_exit)
def closeEvent(self, event):
self.on_wizard_exit()
self.on_wizard_exit()
def add_custom_pages(self):
"""