summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/qgpgme/qgpgmerefreshkeysjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/backends/qgpgme/qgpgmerefreshkeysjob.cpp')
-rw-r--r--certmanager/lib/backends/qgpgme/qgpgmerefreshkeysjob.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/certmanager/lib/backends/qgpgme/qgpgmerefreshkeysjob.cpp b/certmanager/lib/backends/qgpgme/qgpgmerefreshkeysjob.cpp
index a17aca9e0..16846b59b 100644
--- a/certmanager/lib/backends/qgpgme/qgpgmerefreshkeysjob.cpp
+++ b/certmanager/lib/backends/qgpgme/qgpgmerefreshkeysjob.cpp
@@ -190,11 +190,14 @@ void Kleo::QGpgMERefreshKeysJob::slotProcessExited( KProcess * proc ) {
if ( proc != mProcess )
return;
- if ( !mError && !mPatternsToDo.empty() )
- if ( const GpgME::Error err = startAProcess() )
+ if ( !mError && !mPatternsToDo.empty() ) {
+ if ( const GpgME::Error err = startAProcess() ) {
mError = err;
- else
+ }
+ else {
return;
+ }
+ }
emit done();
if ( !mError &&