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:
parent
60c447f56b
commit
306a2495e0
|
@ -1930,7 +1930,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
fromAddress = str(self.ui.comboBoxSendFrom.itemData(
|
fromAddress = str(self.ui.comboBoxSendFrom.itemData(
|
||||||
self.ui.comboBoxSendFrom.currentIndex(),
|
self.ui.comboBoxSendFrom.currentIndex(),
|
||||||
Qt.UserRole).toString())
|
Qt.UserRole).toString())
|
||||||
toAddresses = str(self.ui.lineEditTo.text())
|
toAddresses = str(self.ui.lineEditTo.text().toUtf8())
|
||||||
subject = str(self.ui.lineEditSubject.text().toUtf8())
|
subject = str(self.ui.lineEditSubject.text().toUtf8())
|
||||||
message = str(
|
message = str(
|
||||||
self.ui.textEditMessage.document().toPlainText().toUtf8())
|
self.ui.textEditMessage.document().toPlainText().toUtf8())
|
||||||
|
|
Reference in New Issue
Block a user