diff --git a/lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp b/lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp index 36ea9a1b..721d3cfc 100644 --- a/lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp +++ b/lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp @@ -123,7 +123,7 @@ static QGpgMERefreshOpenPGPKeysJob::result_type refresh_keys(Context *ctx, const GpgME::Error QGpgMERefreshOpenPGPKeysJob::start(const std::vector &keys) { - run(std::bind(&refresh_keys, std::placeholders::_1, keys)); + run([keys](Context *ctx) { return refresh_keys(ctx, keys); }); return Error{}; }