Skip to content
GitLab
Menu
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
232817a7
Commit
232817a7
authored
Nov 29, 2021
by
Ingo Klöcker
Browse files
Hide CMS-specific certificate categories in settings if CMS is disabled
GnuPG-bug-id: 5688
parent
4783266e
Pipeline
#102660
passed with stage
in 2 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/conf/appearanceconfigwidget.cpp
View file @
232817a7
...
...
@@ -449,8 +449,13 @@ void AppearanceConfigWidget::load()
}
const
QStringList
groups
=
config
->
groupList
().
filter
(
QRegularExpression
(
QStringLiteral
(
"^Key Filter #
\\
d+$"
)));
for
(
const
QString
&
group
:
groups
)
{
//QListWidgetItem * item = new QListWidgetItem( d->categoriesLV );
apply_config
(
KConfigGroup
(
config
,
group
),
new
QListWidgetItem
(
d
->
categoriesLV
));
const
KConfigGroup
configGroup
{
config
,
group
};
const
bool
isCmsSpecificKeyFilter
=
!
configGroup
.
readEntry
(
"is-openpgp-key"
,
true
);
auto
item
=
new
QListWidgetItem
{
d
->
categoriesLV
};
// hide CMS-specific filters if CMS is disabled; we hide those filters
// instead of skipping them, so that they are not removed on save
item
->
setHidden
(
isCmsSpecificKeyFilter
&&
!
Kleo
::
Settings
{}.
cmsEnabled
());
apply_config
(
configGroup
,
item
);
}
const
TooltipPreferences
prefs
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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