diff options
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r-- | gpgwin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -402,7 +402,7 @@ void GpgWin::encrypt() QList<QString> *uidList = mKeyList->getChecked(); QByteArray *tmp = new QByteArray(); - if (mCtx->encrypt(uidList, edit->toPlainText().toAscii(), tmp)) { + if (mCtx->encrypt(uidList, edit->toPlainText().toUtf8(), tmp)) { QString *tmp2 = new QString(*tmp); edit->setPlainText(*tmp2); } @@ -416,8 +416,7 @@ void GpgWin::decrypt() preventNoDataErr(&text); mCtx->decrypt(text, tmp); if (!tmp->isEmpty()) { - QString *tmp2 = new QString(*tmp); - edit->setPlainText(*tmp2); + edit->setPlainText(QString::fromUtf8(*tmp)); } } |