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

Use the compatibility helper also for getting the default key algorithm

For GnuPG master this requires T5341 to be fixed.

GnuPG-bug-id: 5217
parent 04c8e33d
......@@ -1740,9 +1740,7 @@ void AdvancedSettingsDialog::loadDefaultGnuPGKeyType()
qCWarning(KLEOPATRA_LOG) << "Failed to obtain cryptoConfig.";
const auto entry = conf->entry(protocol == CMS ? QStringLiteral("gpgsm") : QStringLiteral("gpg"),
const auto entry = getCryptoConfigEntry(conf, protocol == CMS ? "gpgsm" : "gpg", "default_pubkey_algo");
if (!entry) {
qCDebug(KLEOPATRA_LOG) << "GnuPG does not have default key type. Fallback to RSA";
Supports Markdown
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