Fix crash with PySide when sending unicode data on socket

This commit is contained in:
Sebastien Helleu 2011-12-07 16:59:09 +00:00
parent 2e3a580d82
commit 6b52019908

View File

@ -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',