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

Enable creation of OpenPGP keys iff NetKey card has required keys

GnuPG-bug-id: 5128
parent ced1ac37
......@@ -204,6 +204,10 @@ void NetKeyWidget::setCard(const NetKeyCard* card)
const auto keys = card->keys();
mTreeView->setKeys(keys);
if (mKeyForCardKeysButton) {
mKeyForCardKeysButton->setEnabled(card->hasSigningKey() && card->hasEncryptionKey());
}
}
void NetKeyWidget::handleResult(const GpgME::Error &err, QPushButton *btn)
......
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