Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Runtime
Commits
7e7fc2ff
Commit
7e7fc2ff
authored
Nov 23, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more comment
parent
bc92ff42
Pipeline
#41824
failed with stage
in 25 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
resources/imap/settings.cpp
resources/imap/settings.cpp
+3
-0
No files found.
resources/imap/settings.cpp
View file @
7e7fc2ff
...
...
@@ -92,6 +92,7 @@ void Settings::requestPassword()
||
(
mapTransportAuthToKimap
((
MailTransport
::
TransportBase
::
EnumAuthenticationType
::
type
)
authentication
())
==
KIMAP
::
LoginJob
::
GSSAPI
))
{
Q_EMIT
passwordRequestCompleted
(
m_password
,
false
);
}
else
{
//Already async. Just port to ReadPassword
Wallet
*
wallet
=
Wallet
::
openWallet
(
Wallet
::
NetworkWallet
(),
m_winId
,
Wallet
::
Asynchronous
);
if
(
wallet
)
{
connect
(
wallet
,
&
KWallet
::
Wallet
::
walletOpened
,
...
...
@@ -133,6 +134,7 @@ QString Settings::password(bool *userRejected) const
||
(
mapTransportAuthToKimap
((
MailTransport
::
TransportBase
::
EnumAuthenticationType
::
type
)
authentication
())
==
KIMAP
::
LoginJob
::
GSSAPI
))
{
return
m_password
;
}
//Move as async
Wallet
*
wallet
=
Wallet
::
openWallet
(
Wallet
::
NetworkWallet
(),
m_winId
);
if
(
wallet
&&
wallet
->
isOpen
())
{
if
(
wallet
->
hasFolder
(
QStringLiteral
(
"imap"
)))
{
...
...
@@ -158,6 +160,7 @@ QString Settings::sieveCustomPassword(bool *userRejected) const
return
m_customSievePassword
;
}
//Move as async
Wallet
*
wallet
=
Wallet
::
openWallet
(
Wallet
::
NetworkWallet
(),
m_winId
);
if
(
wallet
&&
wallet
->
isOpen
())
{
if
(
wallet
->
hasFolder
(
QStringLiteral
(
"imap"
)))
{
...
...
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