Merge pull request #7749

e63c110 wallet_api: address_book: don't lose pid on setDescription (tobtoht)
This commit is contained in:
luigi1111 2021-06-24 14:11:45 -05:00
commit 0a9d218044
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -81,7 +81,7 @@ bool AddressBookImpl::setDescription(std::size_t index, const std::string &descr
tools::wallet2::address_book_row entry = ab[index]; tools::wallet2::address_book_row entry = ab[index];
entry.m_description = description; 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) if (r)
refresh(); refresh();
else else