From 1692754b546f14d369044ecf321953b141a7b5f5 Mon Sep 17 00:00:00 2001 From: ubbo Date: Sat, 29 Sep 2012 14:37:41 +0000 Subject: further gpgme removal git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@970 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- verifydetailsdialog.cpp | 12 ++++++------ 1 file 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
%1 by:
").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); } -- cgit v1.2.3