Commit f5052080 authored by Lamarque Souza's avatar Lamarque Souza
Browse files

When deleting a connection do not open kwallet if it is not needed.

CCBUG: 275161
CCBUG: 274702
parent 717a70b1
......@@ -178,6 +178,10 @@ void SecretStorage::walletOpenedForRead(bool success)
void SecretStorage::deleteSecrets(Knm::Connection *con)
{
if (!con->hasSecrets()) {
return;
}
if (m_storageMode == PlainText) {
KSharedConfig::Ptr ptr = secretsFileForUuid(con->uuid());
QFile::remove(ptr->name());
......
Supports Markdown
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