diff --git a/openlp/core/lib/mediamanageritem.py b/openlp/core/lib/mediamanageritem.py index a016cbffe..daafad8b1 100644 --- a/openlp/core/lib/mediamanageritem.py +++ b/openlp/core/lib/mediamanageritem.py @@ -281,7 +281,7 @@ class MediaManagerItem(QtGui.QWidget): self.pageLayout.addWidget(self.searchWidget) # Signals and slots self.searchTextEdit.returnPressed.connect(self.onSearchTextButtonClicked) - self.searchTextEdit.clicked.connect(self.onSearchTextButtonClicked) + self.searchTextButton.clicked.connect(self.onSearchTextButtonClicked) self.searchTextEdit.textChanged.connect(self.onSearchTextEditChanged) def addCustomContextActions(self): diff --git a/openlp/core/lib/spelltextedit.py b/openlp/core/lib/spelltextedit.py index 933dd449b..168ce528f 100644 --- a/openlp/core/lib/spelltextedit.py +++ b/openlp/core/lib/spelltextedit.py @@ -133,7 +133,7 @@ class SpellTextEdit(QtGui.QPlainTextEdit): """ self.dictionary = enchant.Dict(action.text()) self.highlighter.spelling_dictionary = self.dictionary - self.highlighter.highlight_block(self.toPlainText()) + self.highlighter.highlightBlock(self.toPlainText()) self.highlighter.rehighlight() def correct_word(self, word): @@ -180,9 +180,9 @@ class Highlighter(QtGui.QSyntaxHighlighter): QtGui.QSyntaxHighlighter.__init__(self, *args) self.spelling_dictionary = None - def highlight_block(self, text): + def highlightBlock(self, text): """ - Highlight misspelt words in a block of text + Highlight misspelt words in a block of text. """ if not self.spelling_dictionary: return