Utilities/SingleApplication.py

changeset 500
c3abc7895a01
parent 465
c20e25deb33a
child 791
9ec2ac20e54e
diff -r 622ab17a68d5 -r c3abc7895a01 Utilities/SingleApplication.py
--- a/Utilities/SingleApplication.py	Thu Aug 12 10:11:06 2010 +0200
+++ b/Utilities/SingleApplication.py	Thu Aug 12 16:11:13 2010 +0200
@@ -7,7 +7,6 @@
 Module implementing the single application server and client.
 """
 
-from PyQt4.QtCore import SIGNAL
 from PyQt4.QtNetwork import QLocalServer, QLocalSocket
 
 class SingleApplicationServer(QLocalServer):
@@ -79,7 +78,7 @@
         """
         if self.qsock is not None:
             self.qsock.readyRead[()].disconnect(self.__parseLine)
-            self.disconnect(self.qsock, SIGNAL('disconnected()'), self.__disconnected)
+            self.qsock.disconnected.disconnect(self.__disconnected)
         
         self.qsock = None
         
@@ -164,4 +163,4 @@
         
         @return error string for the last error (string)
         """
-        return self.sock.errorString()
\ No newline at end of file
+        return self.sock.errorString()

eric ide

mercurial