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

Hide "Groups..." button if group support is disabled

GnuPG-bug-id: 5333
parent 00bf7b28
Pipeline #52858 passed with stage
in 17 minutes and 50 seconds
......@@ -11,6 +11,8 @@
#include "certificateselectiondialog.h"
#include "settings.h"
#include "conf/groupsconfigdialog.h"
#include <view/keytreeview.h>
......@@ -146,6 +148,7 @@ private:
QPushButton *const lookupButton = ui.buttonBox.addButton(i18n("Lookup..."), QDialogButtonBox::ActionRole);
QPushButton *const createButton = ui.buttonBox.addButton(i18n("New..."), QDialogButtonBox::ActionRole);
QPushButton *const groupsButton = ui.buttonBox.addButton(i18n("Groups..."), QDialogButtonBox::ActionRole);
groupsButton->setVisible(Settings().groupsEnabled());
importButton->setToolTip(i18nc("@info:tooltip", "Import certificate from file"));
lookupButton->setToolTip(i18nc("@info:tooltip", "Lookup certificates on server"));
......
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