Verified Commit 223c0b2c authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Fix enable of ok in newkeyresolver

If we don't have encryption combos we should always
enable the ok button.
parent f4d82b59
Pipeline #28254 passed with stage
in 11 minutes and 1 second
......@@ -628,7 +628,13 @@ public:
}
}
mOkButton->setEnabled(!isAllIgnored);
// If we don't encrypt the ok button is always enabled. But otherwise
// we only enable it if we encrypt to at least one recipient.
if (!mEncCombos.size()) {
mOkButton->setEnabled(true);
} else {
mOkButton->setEnabled(!isAllIgnored);
}
if (!isGenerate) {
mOkButton->setText(origOkText);
......
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