From 6cd1c5b5a13f99a809eb1797a73bae2e45fe0eb3 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 7 Nov 2024 02:09:48 +0900 Subject: [PATCH] Only present proxy password delete error if it is not a "does not exist" error Prevent error on deletion when the proxy password does not exist Signed-off-by: Claudio Cambra --- src/gui/accountmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp index a6b96d45b918c..0c86f16a05fc3 100644 --- a/src/gui/accountmanager.cpp +++ b/src/gui/accountmanager.cpp @@ -363,6 +363,8 @@ void AccountManager::saveAccountHelper(Account *acc, QSettings &settings, bool s connect(job, &QKeychain::Job::finished, this, [](const QKeychain::Job *const incomingJob) { if (incomingJob->error() == QKeychain::NoError) { qCInfo(lcAccountManager) << "Deleted proxy password from keychain"; + } else if (incomingJob->error() == QKeychain::EntryNotFound) { + qCDebug(lcAccountManager) << "Proxy password not found in keychain, can't delete"; } else { qCWarning(lcAccountManager) << "Failed to delete proxy password to keychain" << incomingJob->errorString(); }