Unverified Commit 1db344e1 authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Do not always enable crypt in notepad for de-vs

The intention was probably to disable the crypt
button when VS-NfD is requested but the backend
is not VS-NfD compliant. But the sideeffect
was that the commit button was always enabled
in the compliance mode and thus allowed invalid
operations.

Fixes-commit: 96928c1e
parent 54358942
......@@ -502,7 +502,9 @@ public:
: i18nc("%1 is a placeholder for the name of a compliance mode. E.g. NATO RESTRICTED compliant or VS-NfD compliant",
"%1 communication not possible.", Formatting::deVsString()));
mAdditionalInfoLabel->setVisible(true);
mCryptBtn->setEnabled(Kleo::gnupgIsDeVsCompliant());
if (!Kleo::gnupgIsDeVsCompliant()) {
mCryptBtn->setEnabled(false);
}
mMessageWidget->setVisible(!Kleo::gnupgIsDeVsCompliant());
}
}
......
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