From 7ba35598be4b9cfbc5a9d8a218f654b8a14c7b35 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 15 Jun 2018 20:17:25 +0100 Subject: [PATCH] wallet2: fix out of sync account tag cache This would cause crashes when trying to tag an account that was just created --- src/wallet/wallet2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 55a2878b5..4daf054e9 100755 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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) {