mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
fix(qt): emit dataChanged for the whole model in TransactionTableModel
This commit is contained in:
parent
65800cbeb9
commit
a4378fc2ff
@ -313,10 +313,7 @@ void TransactionTableModel::updateAddressBook(const QString& address, const QStr
|
|||||||
void TransactionTableModel::updateConfirmations()
|
void TransactionTableModel::updateConfirmations()
|
||||||
{
|
{
|
||||||
// Blocks came in since last poll.
|
// Blocks came in since last poll.
|
||||||
// Invalidate status (number of confirmations) and (possibly) description
|
Q_EMIT dataChanged(QModelIndex(), QModelIndex());
|
||||||
// for all rows. Qt is smart enough to only actually request the data for the
|
|
||||||
// visible rows.
|
|
||||||
Q_EMIT dataChanged(index(0, Status), index(priv->size()-1, Status));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -798,7 +795,7 @@ void TransactionTableModel::updateDisplayUnit()
|
|||||||
{
|
{
|
||||||
// emit dataChanged to update Amount column with the current unit
|
// emit dataChanged to update Amount column with the current unit
|
||||||
updateAmountColumnTitle();
|
updateAmountColumnTitle();
|
||||||
Q_EMIT dataChanged(index(0, Amount), index(priv->size()-1, Amount));
|
Q_EMIT dataChanged(QModelIndex(), QModelIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransactionTablePriv::NotifyTransactionChanged(const uint256 &hash, ChangeType status)
|
void TransactionTablePriv::NotifyTransactionChanged(const uint256 &hash, ChangeType status)
|
||||||
|
Loading…
Reference in New Issue
Block a user