Skip to content

Commit

Permalink
Fix use of saveAccount in networksettings
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 20, 2024
1 parent 26dbe9b commit 7bdd453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/networksettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -275,7 +275,7 @@ void NetworkSettings::saveBWLimitSettings()
_account->setDownloadLimit(downloadLimit);
_account->setUploadLimitSetting(static_cast<Account::AccountNetworkTransferLimitSetting>(useUploadLimit));
_account->setUploadLimit(uploadLimit);
AccountManager::instance()->saveAccount(_account.data());
AccountManager::instance()->saveAccount(_account);
} else {
ConfigFile cfg;
cfg.setUseDownloadLimit(useDownloadLimit);
Expand Down

0 comments on commit 7bdd453

Please sign in to comment.