Commit a63a231d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Honor KDE Kiosk setting lineedit_reveal_password

parent dd335bcd
Pipeline #67348 passed with stage
in 4 minutes and 9 seconds
......@@ -9,6 +9,7 @@
#include "ldapsearch.h"
#include "ldap_debug.h"
#include <KAuthorized>
#include <KLocalizedString>
#include <KPasswordLineEdit>
#include <QComboBox>
......@@ -129,6 +130,7 @@ void LdapConfigWidget::Private::initWidget()
label = new QLabel(i18n("Password:"), mParent);
mPassword = new KPasswordLineEdit(mParent);
mPassword->setObjectName(QStringLiteral("kcfg_ldappassword"));
mPassword->setRevealPasswordAvailable(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")));
mainLayout->addWidget(label, row, 0);
mainLayout->addWidget(mPassword, row, 1, 1, 3);
......
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