Only show keytocard for secret keys again

parent fb29f611
......@@ -84,7 +84,7 @@ void SubKeysWidget::Private::tableContextMenuRequested(const QPoint &p)
});
}
if (Kleo::Commands::KeyToCardCommand::supported()) {
if (subkey.isSecret() && Kleo::Commands::KeyToCardCommand::supported()) {
const auto cards = SmartCard::ReaderStatus::instance()->getCards();
if (cards.size() && cards[0]->appType() == SmartCard::Card::OpenPGPApplication) {
const auto card = cards[0];
......
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