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

Hide "Configure Groups..." option if group support is disabled

GnuPG-bug-id: 5175
parent d458669f
......@@ -10,6 +10,7 @@
#include <config-kleopatra.h>
#include "mainwindow.h"
#include "aboutdata.h"
#include "settings.h"
#include "view/padwidget.h"
#include "view/searchbar.h"
......@@ -458,6 +459,12 @@ void MainWindow::Private::setupActions()
make_actions_from_data(action_data, /*sizeof action_data / sizeof *action_data,*/ coll);
if (!Settings().groupsEnabled()) {
if (auto *action = coll->action(QStringLiteral("configure_groups"))) {
delete action;
}
}
for ( const QString &name : mainViewActionNames ) {
if (auto action = coll->action(name)) {
action->setCheckable(true);
......
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