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