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:
2
kcc.py
2
kcc.py
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user