1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-25 15:41:44 +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():

View File

@@ -631,6 +631,7 @@ class Ui_KCC(object):
def handleMessage(self, message):
MainWindow.raise_()
MainWindow.activateWindow()
if not self.conversionAlive:
if self.needClean:
self.needClean = False