QScintilla/SearchReplaceWidget.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2677
3d4277929fb3
parent 2689
dc0b8301523d
child 3057
10516539f238
diff -r 6686a3326df8 -r a9577f248f04 QScintilla/SearchReplaceWidget.py
--- a/QScintilla/SearchReplaceWidget.py	Mon Jul 08 21:47:26 2013 +0200
+++ b/QScintilla/SearchReplaceWidget.py	Mon Jul 08 22:36:10 2013 +0200
@@ -542,7 +542,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