Fixed code in the search and replace widget that can possibly through an exception.

Sat, 01 Jun 2013 11:21:08 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 01 Jun 2013 11:21:08 +0200
changeset 2689
dc0b8301523d
parent 2686
b62077dc52c4
child 2690
8ca13f15e1f2

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)

eric ide

mercurial