diff options
author | Timothy Pearson <[email protected]> | 2013-04-28 16:44:42 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-04-28 16:44:42 -0500 |
commit | 7bd54f5a796f6f1276bbd310deaf1f2ac673954d (patch) | |
tree | 734f820f207e48208ae734b36ca12a8b90b9790b /certmanager/lib/ui/keylistview.cpp | |
parent | 8e5a6176843c174bd8dc1bc740518692bd0ab61d (diff) | |
download | tdepim-7bd54f5a796f6f1276bbd310deaf1f2ac673954d.tar.gz tdepim-7bd54f5a796f6f1276bbd310deaf1f2ac673954d.zip |
Fix retriggering of GPGMe socket notifiers in nested event loops
This resolves Bug 825
Add missing GPGMe feature checks to CMake
Diffstat (limited to 'certmanager/lib/ui/keylistview.cpp')
-rw-r--r-- | certmanager/lib/ui/keylistview.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/certmanager/lib/ui/keylistview.cpp b/certmanager/lib/ui/keylistview.cpp index 8e81b9768..00f69500b 100644 --- a/certmanager/lib/ui/keylistview.cpp +++ b/certmanager/lib/ui/keylistview.cpp @@ -333,13 +333,16 @@ Kleo::KeyListViewItem * Kleo::KeyListView::itemByFingerprint( const TQCString & void Kleo::KeyListView::slotRefreshKey( const GpgME::Key & key ) { const char * fpr = key.primaryFingerprint(); - if ( !fpr ) + if ( !fpr ) { return; - if ( KeyListViewItem * item = itemByFingerprint( fpr ) ) + } + if ( KeyListViewItem * item = itemByFingerprint( fpr ) ) { item->setKey ( key ); - else + } + else { // none found -> add it slotAddKey( key ); + } } // slots for the emission of covariant signals: |