aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-15 20:17:25 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-15 20:18:12 +0100
commitbc443494f3265275945a04ee18a628f0e0afd1d8 (patch)
tree1c9ae51545e495abd172d7ecb2dc767073d52a56 /src/wallet/wallet2.cpp
parentMerge pull request #3701 (diff)
downloadmonero-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/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp1
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)
{