Commit 60be5b04 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Return correct config entry for entries other than gpg/compliance

Luckily, so far, this function was only used for gpg/compliance.
At least, in libkleo (and, indirectly, in kleopatra).
parent e8947019
......@@ -38,7 +38,7 @@ QString Kleo::getCryptoConfigStringValue(const char *componentName, const char *
if (!config) {
return {};
}
const CryptoConfigEntry *const entry = getCryptoConfigEntry(config, "gpg", "compliance");
const CryptoConfigEntry *const entry = getCryptoConfigEntry(config, componentName, entryName);
if (!entry || entry->argType() != CryptoConfigEntry::ArgType_String) {
return QString();
}
......
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