aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/qt/src/qgpgmerefreshsmimekeysjob.cpp')
-rw-r--r--lang/qt/src/qgpgmerefreshsmimekeysjob.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp b/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp
index 84bf0245..3187a0cd 100644
--- a/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp
+++ b/lang/qt/src/qgpgmerefreshsmimekeysjob.cpp
@@ -39,6 +39,7 @@
#endif
#include "qgpgmerefreshsmimekeysjob.h"
+#include "util.h"
#include <QDebug>
#include "qgpgme_debug.h"
@@ -101,12 +102,7 @@ GpgME::Error QGpgMERefreshSMIMEKeysJob::start(const std::vector<GpgME::Key> &key
return GpgME::Error::fromCode(GPG_ERR_INV_VALUE);
}
- QStringList fprs;
- fprs.reserve(keys.size());
- std::transform(std::begin(keys), std::end(keys), std::back_inserter(fprs), [](const auto &k) {
- return QString::fromLatin1(k.primaryFingerprint());
- });
- return start(fprs);
+ return start(toFingerprints(keys));
}
#if MAX_CMD_LENGTH < 65 + 128