diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-09-29 14:37:41 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-09-29 14:37:41 +0000 |
commit | 1692754b546f14d369044ecf321953b141a7b5f5 (patch) | |
tree | 74f5fbc0f497c6a4a3f0cba7bbe57581a4ecd86d | |
parent | remove gpgme dependencies, cleanup (diff) | |
download | gpg4usb-1692754b546f14d369044ecf321953b141a7b5f5.tar.gz gpg4usb-1692754b546f14d369044ecf321953b141a7b5f5.zip |
further gpgme removal
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@970 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | verifydetailsdialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/verifydetailsdialog.cpp b/verifydetailsdialog.cpp index 102dec2..dfe301d 100644 --- a/verifydetailsdialog.cpp +++ b/verifydetailsdialog.cpp @@ -57,7 +57,7 @@ void VerifyDetailsDialog::refresh() // Get signature information of current text //QByteArray text = mTextpage->toPlainText().toUtf8(); //mCtx->preventNoDataErr(&text); - gpgme_signature_t sign; + //gpgme_signature_t sign; if(mInputSignature != 0) { // TODO: kgpg //sign = mCtx->verify(mInputData, mInputSignature); @@ -66,18 +66,18 @@ void VerifyDetailsDialog::refresh() //sign = mCtx->verify(mInputData); } - if(sign==0) { + /*if(sign==0) { mVboxLayout->addWidget(new QLabel(tr("No valid input found"))); mVboxLayout->addWidget(buttonBox); return; - } + }*/ // Get timestamp of signature of current text QDateTime timestamp; - timestamp.setTime_t(sign->timestamp); +// timestamp.setTime_t(sign->timestamp); // Set the title widget depending on sign status - if(gpg_err_code(sign->status) == GPG_ERR_BAD_SIGNATURE) { + /*if(gpg_err_code(sign->status) == GPG_ERR_BAD_SIGNATURE) { mVboxLayout->addWidget(new QLabel(tr("Error Validating signature"))); } else if (mInputSignature != 0) { mVboxLayout->addWidget(new QLabel(tr("File was signed on <br/> %1 by:<br/>").arg(timestamp.toString(Qt::SystemLocaleLongDate)))); @@ -101,7 +101,7 @@ void VerifyDetailsDialog::refresh() VerifyKeyDetailBox *sbox = new VerifyKeyDetailBox(this,mCtx,mKeyList,sign); sign = sign->next; mVboxLayout->addWidget(sbox); - } + }*/ mVboxLayout->addWidget(buttonBox); } |