Commit 27a9461b authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

[ #14268 ] daemon: Fix a race hash collision when creating new accounts too fast (fix last commit)

parent d984aa86
......@@ -2507,13 +2507,12 @@ ManagerImpl::addAccount(const std::map<std::string, std::string>& details)
// Add the newly created account in the account order list
newAccountID += "/";
if (not accountList.empty()) {
// Prepend the new account
accountList.insert(0, newAccountID);
accountList.insert(0, newAccountID + "/");
preferences.setAccountOrder(accountList);
} else {
accountList = newAccountID;
accountList = newAccountID + "/";
preferences.setAccountOrder(accountList);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment