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
KMailTransport
Commits
191aa39b
Commit
191aa39b
authored
Jan 13, 2021
by
Laurent Montel
😁
Browse files
Make sure to load password
parent
95a34210
Pipeline
#47540
passed with stage
in 14 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmailtransport/transport.cpp
View file @
191aa39b
...
...
@@ -32,6 +32,7 @@ Transport::Transport(const QString &cfgGroup)
d
->
storePasswordInFile
=
false
;
d
->
needsWalletMigration
=
false
;
load
();
loadPassword
();
}
Transport
::~
Transport
()
...
...
@@ -44,12 +45,16 @@ bool Transport::isValid() const
return
(
id
()
>
0
)
&&
!
host
().
isEmpty
()
&&
port
()
<=
65536
;
}
QString
Transport
::
p
assword
()
void
Transport
::
loadP
assword
()
{
if
(
!
d
->
passwordLoaded
&&
requiresAuthentication
()
&&
storePassword
()
&&
d
->
password
.
isEmpty
())
{
readPassword
();
}
}
QString
Transport
::
password
()
{
return
d
->
password
;
}
...
...
src/kmailtransport/transport.h
View file @
191aa39b
...
...
@@ -140,6 +140,7 @@ private Q_SLOTS:
private:
void
readTransportPasswordFinished
(
QKeychain
::
Job
*
baseJob
);
void
loadPassword
();
TransportPrivate
*
const
d
;
};
}
// namespace MailTransport
...
...
Write
Preview
Supports
Markdown
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