We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d84d4c5 commit ae610beCopy full SHA for ae610be
src/gui/accountmanager.cpp
@@ -371,6 +371,12 @@ AccountStatePtr AccountManager::addAccount(const AccountPtr &newAccount)
371
372
AccountStatePtr newAccountState(AccountState::fromNewAccount(newAccount));
373
addAccountState(newAccountState);
374
+
375
+ // saving once after adding makes sure the account is stored in the config in a working state
376
+ // this is needed to ensure a consistent state in the config file upon unexpected terminations of the client
377
+ // (for instance, when running from a debugger and stopping the process from there)
378
+ saveAccount(newAccount.get());
379
380
return newAccountState;
381
}
382
0 commit comments