Sat, 01 Jun 2013 11:21:08 +0200
Fixed code in the search and replace widget that can possibly through an exception.
QScintilla/SearchReplaceWidget.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/SearchReplaceWidget.py Fri May 31 16:55:50 2013 +0200 +++ b/QScintilla/SearchReplaceWidget.py Sat Jun 01 11:21:08 2013 +0200 @@ -540,7 +540,7 @@ @param editor reference to the editor (Editor) """ - if not self.__finding: + if not self.__finding and isinstance(editor, Editor): if editor.hasSelectedText(): selections = editor.getSelections() line1, index1, line2, index2 = self.__selectionBoundary(selections)