mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
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 <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
c75a324ef0
commit
fa33dd61cf
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue