diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-05-01 11:46:42 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-05-01 11:46:42 +0000 |
commit | 2966d6ffa465a38c28ab4914ffefe9330b424553 (patch) | |
tree | d69591b22c47834d71c20cc73c6eaff4e7ba550e /verifydetailsdialog.cpp | |
parent | verify for files (not yet working) (diff) | |
download | gpg4usb-2966d6ffa465a38c28ab4914ffefe9330b424553.tar.gz gpg4usb-2966d6ffa465a38c28ab4914ffefe9330b424553.zip |
verify file working now
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@910 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'verifydetailsdialog.cpp')
-rw-r--r-- | verifydetailsdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/verifydetailsdialog.cpp b/verifydetailsdialog.cpp index 557646e..5fcedc8 100644 --- a/verifydetailsdialog.cpp +++ b/verifydetailsdialog.cpp @@ -55,9 +55,7 @@ void VerifyDetailsDialog::refresh() //mCtx->preventNoDataErr(&text); gpgme_signature_t sign; if(mInputSignature != 0) { - qDebug() << "insig: " << *mInputSignature; sign = mCtx->verify(mInputData, mInputSignature); - qDebug() << gpg_err_code(sign->status); } else { sign = mCtx->verify(mInputData); } @@ -69,6 +67,8 @@ void VerifyDetailsDialog::refresh() // Set the title widget depending on sign status 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)))); } else { switch (mCtx->textIsSigned(*mInputData)) { |