[plasma/plasma-nm/Plasma/6.7] kded: secretagent: fix missing secrets returned
Matthias Kurz <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 5ab31a1ee69cbdb5bdaf711d98740b11a83fd875 by Matthias Kurz, on behalf of Mickaël Thomas.
Committed on 17/08/2026 at 07:44.
Pushed by ngraham into branch 'Plasma/6.7'.
secretagent: fix missing secrets returned
A new GetSecrets request while a previous one was waiting on a QKeyChain
job would make the previous one return early with no secrets
M +3 -1 kded/secretagent.cpp
https://invent.kde.org/plasma/plasma-nm/-/commit/5ab31a1ee69cbdb5bdaf711d98740b11a83fd875
diff --git a/kded/secretagent.cpp b/kded/secretagent.cpp
index 1c48ad1f3..b548e478d 100644
--- a/kded/secretagent.cpp
+++ b/kded/secretagent.cpp
@@ -401,10 +401,12 @@ bool SecretAgent::processGetSecrets(QSharedPointer<SecretsRequest> request)
job->setKey(storageKey(*connectionSettings, request->setting_name));
job->start();
return false;
- } else {
+ } else if (request->storageJobsRunning <= 0) {
for (auto it = request->storedSecrets.cbegin(); it != request->storedSecrets.cend(); ++it) {
secretsMap.insert(it.key(), it.value().toString());
}
+ } else {
+ return false;
}
}