Debugger/DebugServer.py

changeset 464
a2b1d1770ef0
parent 460
6a3899e91d76
child 465
c20e25deb33a
--- a/Debugger/DebugServer.py	Mon Aug 09 08:41:03 2010 +0200
+++ b/Debugger/DebugServer.py	Mon Aug 09 15:36:47 2010 +0200
@@ -287,10 +287,8 @@
         # only start the client, if we are not in passive mode
         if not self.passive:
             if self.clientProcess:
-                self.disconnect(self.clientProcess, SIGNAL("readyReadStandardError()"), 
-                                self.__clientProcessError)
-                self.disconnect(self.clientProcess, SIGNAL("readyReadStandardOutput()"), 
-                                self.__clientProcessOutput)
+                self.clientProcess.readyReadStandardOutput.disconnect(self.__clientProcessError)
+                self.clientProcess.readyReadStandardOutput.disconnect(self.__clientProcessOutput)
                 self.clientProcess.close()
                 self.clientProcess.kill()
                 self.clientProcess.waitForFinished(10000)
@@ -312,10 +310,8 @@
                     self.debuggerInterface.startRemote(self.serverPort(), runInConsole)
             
             if self.clientProcess:
-                self.connect(self.clientProcess, SIGNAL("readyReadStandardError()"), 
-                             self.__clientProcessError)
-                self.connect(self.clientProcess, SIGNAL("readyReadStandardOutput()"), 
-                             self.__clientProcessOutput)
+                self.clientProcess.readyReadStandardOutput.connect(self.__clientProcessError)
+                self.clientProcess.readyReadStandardOutput.connect(self.__clientProcessOutput)
                 
                 if not isNetworked:
                     # the client is connected through stdin and stdout
@@ -1245,4 +1241,4 @@
         
         @return flag indicating a connection (boolean)
         """
-        return self.debuggerInterface and self.debuggerInterface.isConnected()
+        return self.debuggerInterface and self.debuggerInterface.isConnected()
\ No newline at end of file

eric ide

mercurial