diff options
| author | tobtoht <thotbot@protonmail.com> | 2021-06-08 15:20:48 +0200 |
|---|---|---|
| committer | tobtoht <thotbot@protonmail.com> | 2021-06-08 15:20:48 +0200 |
| commit | e63c1107c0b6396df21df93c4402405975817a82 (patch) | |
| tree | 9c23feaae1066390997dcd6a51f3edbe624c94dd /src | |
| parent | 1c8e598172bd2eddba2607cae0804db2e685813b (diff) | |
| download | monzero-core-e63c1107c0b6396df21df93c4402405975817a82.tar.gz monzero-core-e63c1107c0b6396df21df93c4402405975817a82.tar.xz monzero-core-e63c1107c0b6396df21df93c4402405975817a82.zip | |
wallet_api: address_book: don't lose pid on setDescription
Diffstat (limited to 'src')
| -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 |
