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

Offer transfer to smartcard only for up-to-date gpgme

With older versions of gpgme the key grip information may be missing
from the keys in the key list. If the key grip is missing then transferring
the key to the card fails. Therefore this action is disabled for
older versions of gpgme.

GnuPG-bug-id: 4794
parent c1f9e5ad
Pipeline #33583 passed with stage
in 20 minutes and 36 seconds
......@@ -51,7 +51,7 @@
#include <Libkleo/KeyListModel>
#include <Libkleo/Formatting>
#include <gpgme++/gpgmepp_version.h>
#include <gpgme++/key.h>
#include <KActionCollection>
......@@ -525,7 +525,9 @@ void KeyListController::createActions(KActionCollection *coll)
registerActionForCommand<ClearCrlCacheCommand>(coll->action(QStringLiteral("crl_clear_crl_cache")));
registerActionForCommand<DumpCrlCacheCommand>(coll->action(QStringLiteral("crl_dump_crl_cache")));
//---
#if GPGMEPP_VERSION >= 0x10E01 // 1.14.1
registerActionForCommand<KeyToCardCommand>(coll->action(QStringLiteral("certificates_transfer_to_card")));
#endif
enableDisableActions(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