diff options
Diffstat (limited to 'src/ui/VerifyDetailsDialog.cpp')
-rw-r--r-- | src/ui/VerifyDetailsDialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/VerifyDetailsDialog.cpp b/src/ui/VerifyDetailsDialog.cpp index fe193aa0..9c6ad014 100644 --- a/src/ui/VerifyDetailsDialog.cpp +++ b/src/ui/VerifyDetailsDialog.cpp @@ -24,9 +24,9 @@ #include "ui/VerifyDetailsDialog.h" -VerifyDetailsDialog::VerifyDetailsDialog(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList, - gpgme_signature_t signature) : - QDialog(parent), mCtx(ctx), mKeyList(keyList), sign(signature) { +VerifyDetailsDialog::VerifyDetailsDialog(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList, gpg_error_t error, + gpgme_verify_result_t result) : + QDialog(parent), mCtx(ctx), mKeyList(keyList), sign(result->signatures), error(error) { this->setWindowTitle(tr("Signature Details")); @@ -50,6 +50,8 @@ void VerifyDetailsDialog::slotRefresh() { buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); connect(buttonBox, SIGNAL(rejected()), this, SLOT(close())); + mVboxLayout->addWidget(new QLabel(tr("Status: ") + gpgme_strerror(error))); + if (sign == nullptr) { mVboxLayout->addWidget(new QLabel(tr("No valid input found"))); mVboxLayout->addWidget(buttonBox); |