Fix crash with PySide when sending unicode data on socket
This commit is contained in:
parent
2e3a580d82
commit
6b52019908
@ -118,7 +118,7 @@ class Network(QtCore.QObject):
|
||||
self._socket.abort()
|
||||
|
||||
def send_to_weechat(self, message):
|
||||
self._socket.write(message)
|
||||
self._socket.write(str(message))
|
||||
|
||||
def status_icon(self, status):
|
||||
icon = {self.status_disconnected: 'dialog-close.png',
|
||||
|
Loading…
Reference in New Issue
Block a user