From 5db01d4849bfa7b00746af72265765770e6ea09f Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 8 Jul 2024 00:05:45 +0800 Subject: [PATCH] Ensure keychain chunk jobs in account manager run as intended Signed-off-by: Claudio Cambra --- src/gui/accountmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp index a5c1755dc..a1afecd65 100644 --- a/src/gui/accountmanager.cpp +++ b/src/gui/accountmanager.cpp @@ -358,10 +358,10 @@ void AccountManager::saveAccountHelper(Account *acc, QSettings &settings, bool s const auto proxyPassword = acc->proxyPassword(); if (proxyPassword.isEmpty()) { const auto job = new KeychainChunk::DeleteJob(proxyPasswordKey); - job->exec(); + Q_ASSERT(job->exec()); } else { const auto job = new KeychainChunk::WriteJob(proxyPasswordKey, proxyPassword.toUtf8()); - job->exec(); + Q_ASSERT(job->exec()); } if (acc->_credentials) { @@ -503,7 +503,7 @@ AccountPtr AccountManager::loadAccountHelper(QSettings &settings) acc->setProxyPassword(password); } }); - job->exec(); + Q_ASSERT(job->exec()); // now the server cert, it is in the general group settings.beginGroup(QLatin1String(generalC));