aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-06-24 14:11:45 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-06-24 14:11:45 -0500
commit0a9d218044d731162221cd58928c1bdd3f4a6230 (patch)
treebc4041952645741e27eff0ef0c97394b28751782 /src/wallet/api
parentMerge pull request #7746 (diff)
parentwallet_api: address_book: don't lose pid on setDescription (diff)
downloadmonero-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.cpp2
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