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
d63a8c90
Commit
d63a8c90
authored
Jan 24, 2022
by
Ingo Klöcker
Browse files
Disable UI elements if corresponding config entries are read-only
GnuPG-bug-id: 5791
parent
14c805f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/conf/appearanceconfigwidget.cpp
View file @
d63a8c90
...
...
@@ -460,11 +460,15 @@ void AppearanceConfigWidget::load()
const
TooltipPreferences
prefs
;
d
->
tooltipValidityCheckBox
->
setChecked
(
prefs
.
showValidity
());
d
->
tooltipValidityCheckBox
->
setEnabled
(
!
prefs
.
isImmutable
(
QStringLiteral
(
"ShowValidity"
)));
d
->
tooltipOwnerCheckBox
->
setChecked
(
prefs
.
showOwnerInformation
());
d
->
tooltipOwnerCheckBox
->
setEnabled
(
!
prefs
.
isImmutable
(
QStringLiteral
(
"ShowOwnerInformation"
)));
d
->
tooltipDetailsCheckBox
->
setChecked
(
prefs
.
showCertificateDetails
());
d
->
tooltipDetailsCheckBox
->
setEnabled
(
!
prefs
.
isImmutable
(
QStringLiteral
(
"ShowCertificateDetails"
)));
const
TagsPreferences
tagsPrefs
;
d
->
useTagsCheckBox
->
setChecked
(
tagsPrefs
.
useTags
());
d
->
useTagsCheckBox
->
setEnabled
(
!
tagsPrefs
.
isImmutable
(
QStringLiteral
(
"UseTags"
)));
}
void
AppearanceConfigWidget
::
save
()
...
...
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