Commit 35c58453 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Fix build with gpgme 1.15.1 (and earlier)

parent 23cba3ac
Pipeline #53514 canceled with stage
......@@ -150,7 +150,8 @@ QGpgME::CryptoConfigEntry *getCryptoConfigEntry(const QGpgME::CryptoConfig *conf
#ifdef CRYPTOCONFIG_HAS_GROUPLESS_ENTRY_OVERLOAD
return config->entry(componentName, QString::fromLatin1(entryName));
#else
const CryptoConfigComponent *const comp = config->component(QString::fromLatin1(componentName));
using namespace QGpgME;
const CryptoConfigComponent *const comp = config->component(componentName);
const QStringList groupNames = comp->groupList();
for (const auto &groupName : groupNames) {
const CryptoConfigGroup *const group = comp ? comp->group(groupName) : nullptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment