From 52ba1c26f15a6f73ac45a89995ee6fd29ab60a43 Mon Sep 17 00:00:00 2001 From: nils Date: Tue, 15 Nov 2011 18:01:43 +0000 Subject: also show warning in keydetail dialog, if key is revoked git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@619 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keydetailsdialog.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'keydetailsdialog.cpp') diff --git a/keydetailsdialog.cpp b/keydetailsdialog.cpp index 6911fe1..5fd01f2 100644 --- a/keydetailsdialog.cpp +++ b/keydetailsdialog.cpp @@ -128,13 +128,19 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWid mvbox->addWidget(privKeyBox); } - if(key->expired) { + if((key->expired) || (key->revoked)) { QHBoxLayout *expBox = new QHBoxLayout(); QIcon icon = QIcon::fromTheme("dialog-warning"); QPixmap pixmap = icon.pixmap(QSize(32,32),QIcon::Normal,QIcon::On); QLabel *iconLabel = new QLabel(); - QLabel *expLabel = new QLabel(tr("Warning: Key expired")); + if (key->expired) { + QLabel *expLabel = new QLabel(tr("Warning: Key expired")); + } + if (key->revoked) { + QLabel *expLabel = new QLabel(tr("Warning: Key revoked")); + } + iconLabel->setPixmap(pixmap); QFont font = expLabel->font(); font.setBold(true); -- cgit v1.2.3