Fixed an issue in the single application client. maintenance release-17.07

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 29 Jun 2017 18:51:03 +0200
branch
maintenance
changeset 5776
49ba4a9f0421
parent 5773
899700885725
child 5781
f4e1fdf3b614

Fixed an issue in the single application client.
(grafted from 3a8bedba97ab2185b912f3e0614c8b3bb9074b3f)

Toolbox/SingleApplication.py file | annotate | diff | comparison | revisions
--- a/Toolbox/SingleApplication.py	Wed Jun 28 19:14:32 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