aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 7c3cac2..f2fe931 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -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));
}
}