aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/address_book.cpp
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/api/address_book.cpp
parentMerge pull request #7735 (diff)
downloadmonero-e63c1107c0b6396df21df93c4402405975817a82.tar.xz
wallet_api: address_book: don't lose pid on setDescription
Diffstat (limited to 'src/wallet/api/address_book.cpp')
-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