mirror of
https://github.com/ciromattia/kcc
synced 2026-07-04 03:55:28 +00:00
File association: Socket encoding fix
This commit is contained in:
@@ -71,7 +71,7 @@ class QApplicationMessaging(QtGui.QApplication):
|
|||||||
def handleMessage(self):
|
def handleMessage(self):
|
||||||
socket = self._server.nextPendingConnection()
|
socket = self._server.nextPendingConnection()
|
||||||
if socket.waitForReadyRead(self._timeout):
|
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):
|
def sendMessage(self, message):
|
||||||
if self.isRunning():
|
if self.isRunning():
|
||||||
|
|||||||
@@ -631,6 +631,7 @@ class Ui_KCC(object):
|
|||||||
|
|
||||||
def handleMessage(self, message):
|
def handleMessage(self, message):
|
||||||
MainWindow.raise_()
|
MainWindow.raise_()
|
||||||
|
MainWindow.activateWindow()
|
||||||
if not self.conversionAlive:
|
if not self.conversionAlive:
|
||||||
if self.needClean:
|
if self.needClean:
|
||||||
self.needClean = False
|
self.needClean = False
|
||||||
|
|||||||
Reference in New Issue
Block a user