Skip to content
GitLab
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
9f3fde75
Unverified
Commit
9f3fde75
authored
Feb 10, 2022
by
Andre Heinecke
Browse files
Add setting to disable profile settings
Those do not make sense if the profile is forced.
parent
e3ace7f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/conf/cryptooperationsconfigwidget.cpp
View file @
9f3fde75
...
...
@@ -161,10 +161,10 @@ void CryptoOperationsConfigWidget::applyProfile(const QString &profile)
// group if there are any.
void
CryptoOperationsConfigWidget
::
setupProfileGui
(
QBoxLayout
*
layout
)
{
qCDebug
(
KLEOPATRA_LOG
)
<<
"Engine version "
;
if
(
GpgME
::
engineInfo
(
GpgME
::
GpgEngine
).
engineVersion
()
<
"2.1.20"
||
!
layout
)
{
const
Settings
settings
;
if
(
settings
.
profilesDisabled
()
||
GpgME
::
engineInfo
(
GpgME
::
GpgEngine
).
engineVersion
()
<
"2.1.20"
||
!
layout
)
{
// Profile support is new in 2.1.20
qCDebug
(
KLEOPATRA_LOG
)
<<
"
Engine version false
"
;
qCDebug
(
KLEOPATRA_LOG
)
<<
"
Profile settings disabled
"
;
return
;
}
QDir
datadir
(
QString
::
fromUtf8
(
GpgME
::
dirInfo
(
"datadir"
))
+
QStringLiteral
(
"/../doc/gnupg/examples"
));
...
...
src/kcfg/settings.kcfg
View file @
9f3fde75
...
...
@@ -139,4 +139,10 @@
<default>
false
</default>
</entry>
</group>
<group
name=
"General"
>
<entry
name=
"ProfilesDisabled"
type=
"Bool"
>
<label>
Disable profile settings
</label>
<default>
false
</default>
</entry>
</group>
</kcfg>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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