From fef6948a6d2b4c5771fb3443e64adf95e6076f43 Mon Sep 17 00:00:00 2001 From: nils Date: Thu, 9 Feb 2012 15:30:45 +0000 Subject: fixed a few compiler warnings git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@804 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keydetailsdialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keydetailsdialog.cpp') 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); -- cgit v1.2.3