aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpgwin.cpp6
-rw-r--r--verifydetailsdialog.cpp2
-rw-r--r--verifynotification.cpp2
3 files changed, 5 insertions, 5 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));
}
}
diff --git a/verifydetailsdialog.cpp b/verifydetailsdialog.cpp
index 945e928..587e312 100644
--- a/verifydetailsdialog.cpp
+++ b/verifydetailsdialog.cpp
@@ -48,7 +48,7 @@ void VerifyDetailsDialog::refresh()
mainLayout->addWidget(mVbox);
// Get signature information of current text
- QByteArray text = mTextpage->toPlainText().toAscii(); // TODO: toUtf8() here?
+ QByteArray text = mTextpage->toPlainText().toUtf8(); // TODO: toUtf8() here?
mCtx->preventNoDataErr(&text);
gpgme_signature_t sign = mCtx->verify(text);
diff --git a/verifynotification.cpp b/verifynotification.cpp
index 6834712..2ba4d77 100644
--- a/verifynotification.cpp
+++ b/verifynotification.cpp
@@ -94,7 +94,7 @@ bool VerifyNotification::refresh()
{
verify_label_status verifyStatus=VERIFY_ERROR_OK;
- QByteArray text = mTextpage->toPlainText().toAscii(); // TODO: toUtf8() here?
+ QByteArray text = mTextpage->toPlainText().toUtf8(); // TODO: toUtf8() here?
mCtx->preventNoDataErr(&text);
int textIsSigned = mCtx->textIsSigned(text);