Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | #endif | ||||
if (!m_wallet->getAddress(dest, &name, /* is_mine= */ nullptr, | if (!m_wallet->getAddress(dest, &name, /* is_mine= */ nullptr, | ||||
/* purpose= */ nullptr)) { | /* purpose= */ nullptr)) { | ||||
m_wallet->setAddressBook(dest, strLabel, "send"); | m_wallet->setAddressBook(dest, strLabel, "send"); | ||||
} else if (name != strLabel) { | } else if (name != strLabel) { | ||||
// "" means don't change purpose | // "" means don't change purpose | ||||
m_wallet->setAddressBook(dest, strLabel, ""); | m_wallet->setAddressBook(dest, strLabel, ""); | ||||
} | } | ||||
} | } | ||||
Q_EMIT coinsSent(this, rcp, transaction_array); | Q_EMIT coinsSent(this->wallet(), rcp, transaction_array); | ||||
} | } | ||||
// update balance immediately, otherwise there could be a short noticeable | // update balance immediately, otherwise there could be a short noticeable | ||||
// delay until pollBalanceChanged hits | // delay until pollBalanceChanged hits | ||||
checkBalanceChanged(m_wallet->getBalances()); | checkBalanceChanged(m_wallet->getBalances()); | ||||
return SendCoinsReturn(OK); | return SendCoinsReturn(OK); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |