diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-02-09 15:30:45 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-02-09 15:30:45 +0000 |
commit | fef6948a6d2b4c5771fb3443e64adf95e6076f43 (patch) | |
tree | 0b208418e5013f9deb62c75e36de67f63dec5679 /keydetailsdialog.cpp | |
parent | fixed help not shown in windows (diff) | |
download | gpg4usb-fef6948a6d2b4c5771fb3443e64adf95e6076f43.tar.gz gpg4usb-fef6948a6d2b4c5771fb3443e64adf95e6076f43.zip |
fixed a few compiler warnings
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@804 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keydetailsdialog.cpp')
-rw-r--r-- | keydetailsdialog.cpp | 6 |
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); |