From 7bdd45314d7c866bee49e0f5969afe926d7eb0d7 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 17 Oct 2024 11:32:35 +0800 Subject: [PATCH] Fix use of saveAccount in networksettings Signed-off-by: Claudio Cambra --- src/gui/networksettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/networksettings.cpp b/src/gui/networksettings.cpp index c0f60b7bb1f37..60eacf479f37e 100644 --- a/src/gui/networksettings.cpp +++ b/src/gui/networksettings.cpp @@ -222,7 +222,7 @@ void NetworkSettings::saveProxySettings() _account->setProxySettings(proxySetting, proxyType, host, port, needsAuth, user, password); const auto accountState = AccountManager::instance()->accountFromUserId(_account->userIdAtHostWithPort()); accountState->freshConnectionAttempt(); - AccountManager::instance()->saveAccount(_account.data()); + AccountManager::instance()->saveAccount(_account); } else { ConfigFile().setProxyType(proxyType, host, port, needsAuth, user, password); ClientProxy proxy; @@ -275,7 +275,7 @@ void NetworkSettings::saveBWLimitSettings() _account->setDownloadLimit(downloadLimit); _account->setUploadLimitSetting(static_cast(useUploadLimit)); _account->setUploadLimit(uploadLimit); - AccountManager::instance()->saveAccount(_account.data()); + AccountManager::instance()->saveAccount(_account); } else { ConfigFile cfg; cfg.setUseDownloadLimit(useDownloadLimit);