diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-11-19 11:58:32 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-11-19 11:58:32 +0000 |
commit | f9720cd6bbc854fdc100132607538711f28dd495 (patch) | |
tree | dac3eb342dab3de1d81fda2ff558879e39d45547 | |
parent | bugfix in striking out revoked keys in keyserverimport (diff) | |
download | gpg4usb-f9720cd6bbc854fdc100132607538711f28dd495.tar.gz gpg4usb-f9720cd6bbc854fdc100132607538711f28dd495.zip |
fix sign and verify bug with utf8
git-svn-id: http://cpunk.de/svn/src/gpg4usb/branches/0.3.1@639 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | gpgwin.cpp | 6 | ||||
-rw-r--r-- | verifydetailsdialog.cpp | 2 | ||||
-rw-r--r-- | verifynotification.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -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); |