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

Restrict file operations to OpenPGP if CMS is disabled

GnuPG-bug-id: 5688
parent 489204d8
......@@ -16,6 +16,8 @@
#include "newresultpage.h"
#include <settings.h>
#include <KLocalizedString>
#include <KSharedConfig>
#include <KColorScheme>
......@@ -125,6 +127,9 @@ public:
setTitle(i18nc("@title", "Sign / Encrypt Files"));
auto vLay = new QVBoxLayout(this);
vLay->setContentsMargins(0, 0, 0, 0);
if (!Settings{}.cmsEnabled()) {
mWidget->setProtocol(GpgME::OpenPGP);
}
mWidget->setSignAsText(i18nc("@option:check on SignEncryptPage",
"&Sign as:"));
mWidget->setEncryptForMeText(i18nc("@option:check on SignEncryptPage",
......
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