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

Honor KDE Kiosk setting lineedit_reveal_password

parent 13942b86
Pipeline #67345 passed with stage
in 16 minutes and 25 seconds
......@@ -10,6 +10,7 @@
#include "sievejob_p.h"
#include "kmanagersieve_debug.h"
#include <KAuthorized>
#include <KLocalizedString>
#include <KMessageBox>
#include <KPasswordDialog>
......@@ -18,6 +19,7 @@
#include <kio/authinfo.h>
#include <kio/job.h>
#include <kio/sslui.h>
#include <kwidgetsaddons_version.h>
using namespace KManageSieve;
......@@ -260,6 +262,9 @@ KManageSieve::AuthDetails Session::requestAuthDetails(const QUrl &url)
"(usually the same as your email password):");
QPointer<KPasswordDialog> dlg = new KPasswordDialog(nullptr, KPasswordDialog::ShowUsernameLine | KPasswordDialog::ShowKeepPassword);
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 84, 0)
dlg->setRevealPasswordAvailable(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")));
#endif
dlg->setUsername(ai.username);
dlg->setPassword(ai.password);
dlg->setKeepPassword(ai.keepPassword);
......
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