aboutsummaryrefslogtreecommitdiffstats
path: root/keydetailsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keydetailsdialog.cpp')
-rw-r--r--keydetailsdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/keydetailsdialog.cpp b/keydetailsdialog.cpp
index 1dc3d2d..aeaa69c 100644
--- a/keydetailsdialog.cpp
+++ b/keydetailsdialog.cpp
@@ -152,13 +152,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 *expLabel = new QLabel();
QLabel *iconLabel = new QLabel();
if (key->expired) {
- expLabel = new QLabel(tr("Warning: Key expired"));
+ expLabel->setText(tr("Warning: Key expired"));
}
if (key->revoked) {
- expLabel = new QLabel(tr("Warning: Key revoked"));
+ expLabel->setText(tr("Warning: Key revoked"));
}
iconLabel->setPixmap(pixmap);