1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 17:56:30 +00:00

File association: Socket encoding fix

This commit is contained in:
Paweł Jastrzębski
2013-10-09 13:53:03 +02:00
parent 839bc4cc9e
commit 82445d5d3a
2 changed files with 2 additions and 1 deletions

2
kcc.py
View File

@@ -71,7 +71,7 @@ class QApplicationMessaging(QtGui.QApplication):
def handleMessage(self):
socket = self._server.nextPendingConnection()
if socket.waitForReadyRead(self._timeout):
self.emit(QtCore.SIGNAL('messageFromOtherInstance'), socket.readAll().data())
self.emit(QtCore.SIGNAL('messageFromOtherInstance'), socket.readAll().data().decode('utf8'))
def sendMessage(self, message):
if self.isRunning():