Commit 7adf92f3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Qt5KeyChain for deleting password

parent e50b3a32
Pipeline #41382 failed with stage
in 9 minutes and 17 seconds
......@@ -66,6 +66,7 @@ target_link_libraries(KF5MailTransport
KF5::ConfigWidgets
Qt5::DBus
Qt5::Network
qt5keychain
)
set_target_properties(KF5MailTransport PROPERTIES
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment