qt: Use GpgME::Locate alias

* lang/qt/src/protocol_p.h (Protocol::locateKeysJob): Use Locate alias
instead of Extern|Local.
* lang/qt/src/qgpgmekeyformailboxjob.cpp (do_work): Ditto.
--
This commit is contained in:
Ingo Klöcker 2022-05-02 15:59:41 +02:00
parent e12861f18c
commit 540e7bf3d4
2 changed files with 2 additions and 2 deletions

View File

@ -426,7 +426,7 @@ public:
if (!context) {
return nullptr;
}
context->setKeyListMode(GpgME::Extern | GpgME::Local | GpgME::Signatures | GpgME::Validate);
context->setKeyListMode(GpgME::Locate | GpgME::Signatures | GpgME::Validate);
return new QGpgME::QGpgMEKeyListJob(context);
}

View File

@ -71,7 +71,7 @@ static bool subkeyIsOk(const Subkey s)
static QGpgMEKeyForMailboxJob::result_type do_work(Context *ctx, const QString &mailbox, bool canEncrypt)
{
/* Do a Keylisting. */
ctx->setKeyListMode(GpgME::Extern | GpgME::Local | GpgME::Signatures | GpgME::Validate);
ctx->setKeyListMode(GpgME::Locate | GpgME::Signatures | GpgME::Validate);
std::vector<Key> keys;
QGpgMEKeyListJob *keylist = new QGpgMEKeyListJob(ctx);