diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-03-01 19:36:48 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-03-01 19:36:48 +0000 |
commit | b57b5935b14dc40e5cd1d51de833c13dec37dbc8 (patch) | |
tree | fb8775f6b239dde8ccfaee60c00cd85b4bc58885 | |
parent | updated brasilian translation (diff) | |
download | gpg4usb-b57b5935b14dc40e5cd1d51de833c13dec37dbc8.tar.gz gpg4usb-b57b5935b14dc40e5cd1d51de833c13dec37dbc8.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/trunk@820 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); |