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
7adf92f3
Commit
7adf92f3
authored
Nov 18, 2020
by
Laurent Montel
😁
Browse files
Use Qt5KeyChain for deleting password
parent
e50b3a32
Pipeline
#41382
failed with stage
in 9 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmailtransport/CMakeLists.txt
View file @
7adf92f3
...
...
@@ -66,6 +66,7 @@ target_link_libraries(KF5MailTransport
KF5::ConfigWidgets
Qt5::DBus
Qt5::Network
qt5keychain
)
set_target_properties
(
KF5MailTransport PROPERTIES
...
...
src/kmailtransport/transportmanager.cpp
View file @
7adf92f3
...
...
@@ -32,7 +32,8 @@
#include <KLocalizedString>
#include <KMessageBox>
#include <Kdelibs4ConfigMigrator>
#include <qt5keychain/keychain.h>
using
namespace
QKeychain
;
#include <KWallet>
using
namespace
MailTransport
;
...
...
@@ -370,10 +371,9 @@ void TransportManager::setDefaultTransport(int id)
void
TransportManager
::
removePasswordFromWallet
(
int
id
)
{
Wallet
*
currentWallet
=
wallet
();
if
(
currentWallet
)
{
currentWallet
->
removeEntry
(
QString
::
number
(
id
));
}
auto
deleteJob
=
new
DeletePasswordJob
(
WALLET_FOLDER
);
deleteJob
->
setKey
(
QString
::
number
(
id
));
deleteJob
->
start
();
}
void
TransportManager
::
removeTransport
(
int
id
)
...
...
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