Unverified Commit 9f3fde75 authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Add setting to disable profile settings

Those do not make sense if the profile is forced.
parent e3ace7f6
......@@ -161,10 +161,10 @@ void CryptoOperationsConfigWidget::applyProfile(const QString &profile)
// group if there are any.
void CryptoOperationsConfigWidget::setupProfileGui(QBoxLayout *layout)
{
qCDebug(KLEOPATRA_LOG) << "Engine version ";
if (GpgME::engineInfo(GpgME::GpgEngine).engineVersion() < "2.1.20" || !layout) {
const Settings settings;
if (settings.profilesDisabled() || GpgME::engineInfo(GpgME::GpgEngine).engineVersion() < "2.1.20" || !layout) {
// Profile support is new in 2.1.20
qCDebug(KLEOPATRA_LOG) << "Engine version false";
qCDebug(KLEOPATRA_LOG) << "Profile settings disabled";
return;
}
QDir datadir(QString::fromUtf8(GpgME::dirInfo("datadir")) + QStringLiteral("/../doc/gnupg/examples"));
......
......@@ -139,4 +139,10 @@
<default>false</default>
</entry>
</group>
<group name="General">
<entry name="ProfilesDisabled" type="Bool">
<label>Disable profile settings</label>
<default>false</default>
</entry>
</group>
</kcfg>
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