wallet2: fix out of sync account tag cache

This would cause crashes when trying to tag an account that was
just created
pull/70/head
moneromooo-monero 6 years ago committed by wowario
parent 65f483ca5b
commit 7ba35598be

@ -938,6 +938,7 @@ void wallet2::expand_subaddresses(const cryptonote::subaddress_index& index)
}
m_subaddress_labels.resize(index.major + 1, {"Untitled account"});
m_subaddress_labels[index.major].resize(index.minor + 1);
get_account_tags();
}
else if (m_subaddress_labels[index.major].size() <= index.minor)
{

Loading…
Cancel
Save