Merge branch 'v0.6' into qt5-wip #2237

Open
kashikoibumi wants to merge 38 commits from kashikoibumi/qt5-wip into v0.6
2 changed files with 9 additions and 6 deletions
Showing only changes of commit 5f4b67a61e - Show all commits

View File

@ -14,8 +14,9 @@ class UISignaler(QtCore.QThread):
updateStatusBar = QtCore.Signal(object)
updateSentItemStatusByToAddress = QtCore.Signal(object, str)
updateSentItemStatusByAckdata = QtCore.Signal(object, str)
displayNewInboxMessage = QtCore.Signal(object, str, str, object, str)
displayNewSentMessage = QtCore.Signal(object, str, str, str, object, str)
displayNewInboxMessage = QtCore.Signal(object, str, object, object, str)
displayNewSentMessage = QtCore.Signal(
object, str, str, object, object, str)
updateNetworkStatusTab = QtCore.Signal(bool, bool, Peer)
updateNumberOfMessagesProcessed = QtCore.Signal()
updateNumberOfPubkeysProcessed = QtCore.Signal()
@ -54,14 +55,15 @@ class UISignaler(QtCore.QThread):
self.updateSentItemStatusByAckdata.emit(ackData, message)
elif command == 'displayNewInboxMessage':
inventoryHash, toAddress, fromAddress, subject, body = data
self.displayNewInboxMessage.emit(
inventoryHash, toAddress, fromAddress,
unicode(subject, 'utf-8'), body)
subject, body)
elif command == 'displayNewSentMessage':
toAddress, fromLabel, fromAddress, subject, message, ackdata = data
self.displayNewSentMessage.emit(
toAddress, fromLabel, fromAddress,
unicode(subject, 'utf-8'), message, ackdata)
subject.decode('utf-8'), message, ackdata)
elif command == 'updateNetworkStatusTab':
outbound, add, destination = data
self.updateNetworkStatusTab.emit(outbound, add, destination)

View File

@ -155,5 +155,6 @@ class MsgDecode(object):
# Throw away any extra lines (headers) after the subject.
if subject:
subject = subject.splitlines()[0]
self.subject = subject
self.body = body
# Field types should be the same for all message types
self.subject = subject.decode('utf-8', 'replace')
self.body = body.decode('utf-8', 'replace')