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
abb355c8
Commit
abb355c8
authored
Nov 29, 2021
by
Ingo Klöcker
Browse files
Hide "Hierarchical Certificate List" option if CMS is disabled
GnuPG-bug-id: 5688
parent
69a9c7ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/view/tabwidget.cpp
View file @
abb355c8
...
...
@@ -13,6 +13,8 @@
#include "keytreeview.h"
#include "kleopatra_debug.h"
#include <settings.h>
#include <utils/action_data.h>
#include <Libkleo/Stl_Util>
...
...
@@ -560,6 +562,7 @@ void TabWidget::Private::enableDisablePageActions(const Actions &actions, const
actions
.
setEnabled
(
Actions
::
MoveRight
,
p
&&
tabWidget
.
indexOf
(
const_cast
<
Page
*>
(
p
))
!=
tabWidget
.
count
()
-
1
);
actions
.
setEnabled
(
Actions
::
Hierarchical
,
p
&&
p
->
canChangeHierarchical
());
actions
.
setChecked
(
Actions
::
Hierarchical
,
p
&&
p
->
isHierarchicalView
());
actions
.
setVisible
(
Actions
::
Hierarchical
,
Kleo
::
Settings
{}.
cmsEnabled
());
actions
.
setEnabled
(
Actions
::
ExpandAll
,
p
&&
p
->
isHierarchicalView
());
actions
.
setEnabled
(
Actions
::
CollapseAll
,
p
&&
p
->
isHierarchicalView
());
...
...
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