aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 8cb0ecc..6aa95dc 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -635,9 +635,9 @@ void GpgWin::sign()
QByteArray *tmp = new QByteArray();
// TODO: toUtf8() here?
- if (mCtx->sign(uidList, edit->curTextPage()->toPlainText().toAscii(), tmp)) {
- QString *tmp2 = new QString(*tmp);
- edit->fillTextEditWithText(*tmp2);
+ if (mCtx->sign(uidList, edit->curTextPage()->toPlainText().toUtf8(), tmp)) {
+ //QString tmp2 =
+ edit->fillTextEditWithText(QString::fromUtf8(*tmp));
}
}