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

Hide "Hierarchical Certificate List" option if CMS is disabled

GnuPG-bug-id: 5688
parent 69a9c7ed
......@@ -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());
......
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