diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-06-24 14:11:45 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-24 14:11:45 -0500 |
commit | 0a9d218044d731162221cd58928c1bdd3f4a6230 (patch) | |
tree | bc4041952645741e27eff0ef0c97394b28751782 /src/wallet/api | |
parent | Merge pull request #7746 (diff) | |
parent | wallet_api: address_book: don't lose pid on setDescription (diff) | |
download | monero-0a9d218044d731162221cd58928c1bdd3f4a6230.tar.xz |
Merge pull request #7749
e63c110 wallet_api: address_book: don't lose pid on setDescription (tobtoht)
Diffstat (limited to 'src/wallet/api')
-rw-r--r-- | src/wallet/api/address_book.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/address_book.cpp b/src/wallet/api/address_book.cpp index 96090d9f5..3ad9a3ad9 100644 --- a/src/wallet/api/address_book.cpp +++ b/src/wallet/api/address_book.cpp @@ -81,7 +81,7 @@ bool AddressBookImpl::setDescription(std::size_t index, const std::string &descr tools::wallet2::address_book_row entry = ab[index]; entry.m_description = description; - bool r = m_wallet->m_wallet->set_address_book_row(index, entry.m_address, NULL, entry.m_description, entry.m_is_subaddress); + bool r = m_wallet->m_wallet->set_address_book_row(index, entry.m_address, entry.m_has_payment_id ? &entry.m_payment_id : nullptr, entry.m_description, entry.m_is_subaddress); if (r) refresh(); else |