diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-15 20:17:25 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-15 20:18:12 +0100 |
commit | bc443494f3265275945a04ee18a628f0e0afd1d8 (patch) | |
tree | 1c9ae51545e495abd172d7ecb2dc767073d52a56 /src | |
parent | Merge pull request #3701 (diff) | |
download | monero-bc443494f3265275945a04ee18a628f0e0afd1d8.tar.xz |
wallet2: fix out of sync account tag cache
This would cause crashes when trying to tag an account that was
just created
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index d2db45f12..2ee485ffd 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -944,6 +944,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) { |