aboutsummaryrefslogtreecommitdiffstats
path: root/keydetailsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keydetailsdialog.cpp')
-rw-r--r--keydetailsdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/keydetailsdialog.cpp b/keydetailsdialog.cpp
index 5fd01f2..c2de5e4 100644
--- a/keydetailsdialog.cpp
+++ b/keydetailsdialog.cpp
@@ -133,12 +133,13 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWid
QIcon icon = QIcon::fromTheme("dialog-warning");
QPixmap pixmap = icon.pixmap(QSize(32,32),QIcon::Normal,QIcon::On);
+ QLabel *expLabel;
QLabel *iconLabel = new QLabel();
if (key->expired) {
- QLabel *expLabel = new QLabel(tr("Warning: Key expired"));
+ expLabel = new QLabel(tr("Warning: Key expired"));
}
if (key->revoked) {
- QLabel *expLabel = new QLabel(tr("Warning: Key revoked"));
+ expLabel = new QLabel(tr("Warning: Key revoked"));
}
iconLabel->setPixmap(pixmap);