RefactoringRope/RefactoringServer.py

branch
server_client_variant
changeset 194
5c297b473425
parent 192
20950ed6b384
child 197
7046ac1bcb4b
--- a/RefactoringRope/RefactoringServer.py	Sun Sep 24 19:28:31 2017 +0200
+++ b/RefactoringRope/RefactoringServer.py	Sun Sep 24 19:36:17 2017 +0200
@@ -18,6 +18,7 @@
 
 sys.path.insert(0, os.path.dirname(__file__))
 
+from PyQt5.QtCore import pyqtSlot
 from PyQt5.QtWidgets import QMenu, QApplication, QAction
 from PyQt5.Qsci import QsciScintilla
 
@@ -85,6 +86,15 @@
             "Changes": self.__processChanges,
         }
     
+    @pyqtSlot()
+    def handleNewConnection(self):
+        """
+        Public slot for new incoming connections from a client.
+        """
+        super(RefactoringServer, self).handleNewConnection()
+        
+        self.sendJson("GetConfig", {})
+    
     def activate(self):
         """
         Public method to activate the refactoring server.

eric ide

mercurial