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

Offer only OpenPGP when encrypting clipboard if CMS is disabled

GnuPG-bug-id: 5688
parent 99ea68ab
......@@ -15,6 +15,8 @@
#include "command_p.h"
#include <settings.h>
#include <crypto/encryptemailcontroller.h>
#include <utils/input.h>
......@@ -83,7 +85,9 @@ EncryptClipboardCommand::Private::Private(EncryptClipboardCommand *qq, KeyListCo
input(),
controller(EncryptEMailController::ClipboardMode)
{
if (!Settings{}.cmsEnabled()) {
controller.setProtocol(GpgME::OpenPGP);
}
}
EncryptClipboardCommand::Private::~Private()
......
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