summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/ui
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-21 13:17:48 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-03 04:25:16 +0200
commitc34a46b466d8b30bc5490c64a5c77f5bf6f0b6c4 (patch)
tree1b245a0731c22ee39e8da4b1fe4d5795281fc99c /certmanager/lib/ui
parent6d45b35a4abcf3cab08b6d99e3cde8ad8da820f8 (diff)
downloadtdepim-c34a46b466d8b30bc5490c64a5c77f5bf6f0b6c4.tar.gz
tdepim-c34a46b466d8b30bc5490c64a5c77f5bf6f0b6c4.zip
Fix a number of build warnings
(cherry picked from commit 292e3c830032a4634f04c3095d6bfa272b65d712)
Diffstat (limited to 'certmanager/lib/ui')
-rw-r--r--certmanager/lib/ui/keyselectiondialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/certmanager/lib/ui/keyselectiondialog.cpp b/certmanager/lib/ui/keyselectiondialog.cpp
index af80e9ece..edb7ef201 100644
--- a/certmanager/lib/ui/keyselectiondialog.cpp
+++ b/certmanager/lib/ui/keyselectiondialog.cpp
@@ -86,13 +86,14 @@
static bool checkKeyUsage( const GpgME::Key & key, unsigned int keyUsage ) {
if ( keyUsage & Kleo::KeySelectionDialog::ValidKeys ) {
- if ( key.isInvalid() )
+ if ( key.isInvalid() ) {
if ( key.keyListMode() & GpgME::Context::Validate ) {
kdDebug() << "key is invalid" << endl;
return false;
} else {
kdDebug() << "key is invalid - ignoring" << endl;
}
+ }
if ( key.isExpired() ) {
kdDebug() << "key is expired" << endl;
return false;