Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
libksieve
Commits
88447830
Commit
88447830
authored
Jun 24, 2021
by
Laurent Montel
😁
Browse files
Honor KDE Kiosk setting lineedit_reveal_password
parent
13942b86
Pipeline
#67345
passed with stage
in 16 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmanagesieve/session.cpp
View file @
88447830
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment