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

Offer only OpenPGP keys for signing/encrypting notepad if CMS is disabled

GnuPG-bug-id: 5688
parent a5412389
......@@ -10,6 +10,8 @@
#include "kleopatra_debug.h"
#include <settings.h>
#include <Libkleo/KleoException>
#include <Libkleo/Classify>
#include <Libkleo/KeyCache>
......@@ -158,7 +160,7 @@ public:
mEdit->setAcceptRichText(false);
mEdit->setMinimumWidth(QFontMetrics(fixedFont).averageCharWidth() * 70);
if (KeyCache::instance()->pgpOnly()) {
if (KeyCache::instance()->pgpOnly() || !Settings{}.cmsEnabled()) {
mSigEncWidget->setProtocol(GpgME::OpenPGP);
} else {
auto grp = new QButtonGroup(q);
......
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