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
KDE PIM Runtime
Commits
2b76fe0d
Commit
2b76fe0d
authored
Nov 17, 2020
by
Laurent Montel
😁
Browse files
Use DeletePasswordJob
parent
9d9c0831
Pipeline
#41331
failed with stage
in 17 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/imap/settings.cpp
View file @
2b76fe0d
...
...
@@ -7,7 +7,8 @@
#include "settings.h"
#include "settingsadaptor.h"
#include <qt5keychain/keychain.h>
using
namespace
QKeychain
;
#include "imapaccount.h"
#include <config-imap.h>
...
...
@@ -80,15 +81,9 @@ void Settings::clearCachedPassword()
void
Settings
::
cleanup
()
{
//TODO move to async
Wallet
*
wallet
=
Wallet
::
openWallet
(
Wallet
::
NetworkWallet
(),
m_winId
);
if
(
wallet
&&
wallet
->
isOpen
())
{
if
(
wallet
->
hasFolder
(
QStringLiteral
(
"imap"
)))
{
wallet
->
setFolder
(
QStringLiteral
(
"imap"
));
wallet
->
removeEntry
(
config
()
->
name
());
}
delete
wallet
;
}
auto
deleteJob
=
new
DeletePasswordJob
(
QStringLiteral
(
"imap"
));
deleteJob
->
setKey
(
config
()
->
name
());
deleteJob
->
start
();
}
void
Settings
::
requestPassword
()
...
...
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