Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kleopatra
Commits
a5412389
Commit
a5412389
authored
Nov 23, 2021
by
Ingo Klöcker
Browse files
Do not offer creation of S/MIME certificate requests if CMS is disabled
GnuPG-bug-id: 5688
parent
f593e1df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/commands/newcertificatecommand.cpp
View file @
a5412389
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment