diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-03-05 21:42:14 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-03-05 21:42:14 +0000 |
commit | eb485c26d4f74441adda6222304f85b40a5131b4 (patch) | |
tree | 05d7e6379e3288829f46cdd4c57ef94d3fbc8c0d | |
parent | updated russian translation (diff) | |
download | gpg4usb-eb485c26d4f74441adda6222304f85b40a5131b4.tar.gz gpg4usb-eb485c26d4f74441adda6222304f85b40a5131b4.zip |
fix sign and verify bug with utf8, which was already fixed in 0.3.1.1
git-svn-id: http://cpunk.de/svn/src/gpg4usb/branches/0.3.2@833 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | mainwindow.cpp | 4 | ||||
-rw-r--r-- | verifydetailsdialog.cpp | 2 | ||||
-rw-r--r-- | verifynotification.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 84da541..72a559e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -789,8 +789,8 @@ void MainWindow::sign() QStringList *uidList = mKeyList->getPrivateChecked(); QByteArray *tmp = new QByteArray(); - // TODO: toUtf8() here? - if (mCtx->sign(uidList, edit->curTextPage()->toPlainText().toAscii(), tmp)) { + + if (mCtx->sign(uidList, edit->curTextPage()->toPlainText().toUtf8(), tmp)) { QString *tmp2 = new QString(*tmp); edit->fillTextEditWithText(*tmp2); } diff --git a/verifydetailsdialog.cpp b/verifydetailsdialog.cpp index 98746f1..a8e53e6 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(); mCtx->preventNoDataErr(&text); gpgme_signature_t sign = mCtx->verify(text); diff --git a/verifynotification.cpp b/verifynotification.cpp index 284d511..ce5979c 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(); mCtx->preventNoDataErr(&text); int textIsSigned = mCtx->textIsSigned(text); |