Recipient label UTF-8 fix

If recipient label had UTF-8 characters, clicking Send would trigger a
decoding error and woudln't send.
This commit is contained in:
Peter Šurda 2016-08-14 12:56:28 +02:00
parent 60c447f56b
commit 306a2495e0
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -1930,7 +1930,7 @@ class MyForm(settingsmixin.SMainWindow):
fromAddress = str(self.ui.comboBoxSendFrom.itemData(
self.ui.comboBoxSendFrom.currentIndex(),
Qt.UserRole).toString())
toAddresses = str(self.ui.lineEditTo.text())
toAddresses = str(self.ui.lineEditTo.text().toUtf8())
subject = str(self.ui.lineEditSubject.text().toUtf8())
message = str(
self.ui.textEditMessage.document().toPlainText().toUtf8())