forked from openlp/openlp
- 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:
parent
db86f45bd7
commit
a703294db2
@ -414,6 +414,8 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
if self.bible:
|
if self.bible:
|
||||||
book_data = self.get_common_books(self.bible, self.second_bible)
|
book_data = self.get_common_books(self.bible, self.second_bible)
|
||||||
language_selection = self.plugin.manager.get_language_selection(self.bible.name)
|
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 = [book.get_name(language_selection) + ' ' for book in book_data]
|
||||||
books.sort(key=get_locale_key)
|
books.sort(key=get_locale_key)
|
||||||
set_case_insensitive_completer(books, self.search_edit)
|
set_case_insensitive_completer(books, self.search_edit)
|
||||||
|
@ -83,7 +83,7 @@ class DuplicateSongRemovalForm(OpenLPWizard, RegistryProperties):
|
|||||||
self.cancel_button.clicked.connect(self.on_wizard_exit)
|
self.cancel_button.clicked.connect(self.on_wizard_exit)
|
||||||
|
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
self.on_wizard_exit()
|
self.on_wizard_exit()
|
||||||
|
|
||||||
def add_custom_pages(self):
|
def add_custom_pages(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user