Fixed an issue in the single application client.

Thu, 29 Jun 2017 18:51:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 29 Jun 2017 18:51:03 +0200
changeset 5775
3a8bedba97ab
parent 5774
a559df54a729
child 5777
2c4441d65ee3

Fixed an issue in the single application client.

Toolbox/SingleApplication.py file | annotate | diff | comparison | revisions
--- a/Toolbox/SingleApplication.py	Wed Jun 28 20:05:15 2017 +0200
+++ b/Toolbox/SingleApplication.py	Thu Jun 29 18:51:03 2017 +0200
@@ -9,6 +9,7 @@
 
 from __future__ import unicode_literals
 
+from PyQt5.QtCore import QByteArray
 from PyQt5.QtNetwork import QLocalServer, QLocalSocket
 
 
@@ -162,7 +163,7 @@
         @param cmd command to be sent (string)
         """
         if self.connected:
-            self.sock.write(cmd)
+            self.sock.write(QByteArray(cmd.encode()))
             self.sock.flush()
         
     def errstr(self):

eric ide

mercurial