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

Do not offer creation of S/MIME certificate requests if CMS is disabled

GnuPG-bug-id: 5688
parent f593e1df
......@@ -13,6 +13,8 @@
#include "command_p.h"
#include <settings.h>
#include <newcertificatewizard/newcertificatewizard.h>
......@@ -111,10 +113,12 @@ Protocol NewCertificateCommand::protocol() const
void NewCertificateCommand::doStart()
{
d->ensureDialogCreated();
Q_ASSERT(d->dialog);
if (d->protocol == UnknownProtocol && !Settings{}.cmsEnabled()) {
d->protocol = GpgME::OpenPGP;
}
if (d->protocol != UnknownProtocol) {
d->dialog->setProtocol(d->protocol);
}
......
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