|
|
|
@ -118,6 +118,7 @@ public:
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
m_loaded = true;
|
|
|
|
|
DispatchNotifications();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Update our model of the wallet incrementally, to synchronize our model of the wallet
|
|
|
|
@ -252,12 +253,12 @@ TransactionTableModel::TransactionTableModel(const PlatformStyle *_platformStyle
|
|
|
|
|
fProcessingQueuedTransactions(false),
|
|
|
|
|
platformStyle(_platformStyle)
|
|
|
|
|
{
|
|
|
|
|
subscribeToCoreSignals();
|
|
|
|
|
|
|
|
|
|
columns << QString() << QString() << tr("Date") << tr("Type") << tr("Label") << BitcoinUnits::getAmountColumnTitle(walletModel->getOptionsModel()->getDisplayUnit());
|
|
|
|
|
priv->refreshWallet(walletModel->wallet());
|
|
|
|
|
|
|
|
|
|
connect(walletModel->getOptionsModel(), &OptionsModel::displayUnitChanged, this, &TransactionTableModel::updateDisplayUnit);
|
|
|
|
|
|
|
|
|
|
subscribeToCoreSignals();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TransactionTableModel::~TransactionTableModel()
|
|
|
|
@ -722,7 +723,7 @@ void TransactionTablePriv::NotifyTransactionChanged(const uint256 &hash, ChangeT
|
|
|
|
|
|
|
|
|
|
TransactionNotification notification(hash, status, showTransaction);
|
|
|
|
|
|
|
|
|
|
if (m_loading)
|
|
|
|
|
if (!m_loaded || m_loading)
|
|
|
|
|
{
|
|
|
|
|
vQueueNotifications.push_back(notification);
|
|
|
|
|
return;
|
|
|
|
@ -732,7 +733,7 @@ void TransactionTablePriv::NotifyTransactionChanged(const uint256 &hash, ChangeT
|
|
|
|
|
|
|
|
|
|
void TransactionTablePriv::DispatchNotifications()
|
|
|
|
|
{
|
|
|
|
|
if (m_loading) return;
|
|
|
|
|
if (!m_loaded || m_loading) return;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
if (vQueueNotifications.size() > 10) { // prevent balloon spam, show maximum 10 balloons
|
|
|
|
|