Commit 768823f4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to delete password

parent 2bff6bfe
Pipeline #42009 passed with stage
in 10 minutes and 25 seconds
......@@ -390,13 +390,11 @@ void TransportManager::removeTransport(int id)
d->transports.removeAll(t);
d->validateDefault();
QString group = t->currentGroup();
const QString group = t->currentGroup();
if (t->storePassword()) {
//Move async
Wallet *currentWallet = wallet();
if (currentWallet) {
currentWallet->removeEntry(QString::number(t->id()));
}
auto deleteJob = new DeletePasswordJob(WALLET_FOLDER);
deleteJob->setKey(QString::number(t->id()));
deleteJob->start();
}
delete t;
d->config->deleteGroup(group);
......
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