aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authortobtoht <thotbot@protonmail.com>2021-06-08 15:20:48 +0200
committertobtoht <thotbot@protonmail.com>2021-06-08 15:20:48 +0200
commite63c1107c0b6396df21df93c4402405975817a82 (patch)
tree9c23feaae1066390997dcd6a51f3edbe624c94dd /src/wallet
parentMerge pull request #7735 (diff)
downloadmonero-e63c1107c0b6396df21df93c4402405975817a82.tar.xz
wallet_api: address_book: don't lose pid on setDescription
Diffstat (limited to 'src/wallet')
-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