QScintilla/SearchReplaceWidget.py

changeset 6116
f3d3c996c193
parent 6048
82ad8ec9548c
child 6571
feb72cfc7807
--- a/QScintilla/SearchReplaceWidget.py	Mon Feb 05 19:15:47 2018 +0100
+++ b/QScintilla/SearchReplaceWidget.py	Mon Feb 05 19:59:18 2018 +0100
@@ -691,19 +691,22 @@
         
         self.__setShortcuts()
     
-    def selectionChanged(self):
+    def selectionChanged(self, editor):
         """
         Public slot tracking changes of selected text.
+        
+        @param editor reference to the editor
+        @type Editor
         """
-        aw = self.sender()
-        self.updateSelectionCheckBox(aw)
+        self.updateSelectionCheckBox(editor)
     
     @pyqtSlot(Editor)
     def updateSelectionCheckBox(self, editor):
         """
         Public slot to update the selection check box.
         
-        @param editor reference to the editor (Editor)
+        @param editor reference to the editor
+        @type Editor
         """
         if not self.__finding and isinstance(editor, Editor):
             if editor.hasSelectedText():
@@ -1108,11 +1111,13 @@
         """
         self.__searchReplaceWidget.replaceAll()
     
-    def selectionChanged(self):
+    def selectionChanged(self, editor):
         """
         Public slot tracking changes of selected text.
+        
+        @param editor reference to the editor
+        @type Editor
         """
-        editor = self.sender()
         self.__searchReplaceWidget.updateSelectionCheckBox(editor)
     
     @pyqtSlot(Editor)

eric ide

mercurial