Fix statusbar chan creation message:

non-ASCII characters displayed incorrectly
This commit is contained in:
Dmitri Bogomolov 2017-10-03 18:01:54 +03:00
parent 6548999a49
commit 1abdc14807
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -37,7 +37,7 @@ class NewChanDialog(QtGui.QDialog, RetranslateMixin):
addressGeneratorQueue.put(('joinChan', addBMIfNotPresent(self.chanAddress.text().toUtf8()), str_chan + ' ' + str(self.chanPassPhrase.text().toUtf8()), self.chanPassPhrase.text().toUtf8(), True))
addressGeneratorReturnValue = apiAddressGeneratorReturnQueue.get(True)
if len(addressGeneratorReturnValue) > 0 and addressGeneratorReturnValue[0] != 'chan name does not match address':
UISignalQueue.put(('updateStatusBar', _translate("newchandialog", "Successfully created / joined chan %1").arg(str(self.chanPassPhrase.text().toUtf8()))))
UISignalQueue.put(('updateStatusBar', _translate("newchandialog", "Successfully created / joined chan %1").arg(unicode(self.chanPassPhrase.text()))))
self.parent.ui.tabWidget.setCurrentIndex(3)
self.done(QtGui.QDialog.Accepted)
else: