Skip to content

Commit

Permalink
fix(qt): emit dataChanged for the whole model in TransactionTableModel
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Dec 6, 2024
1 parent 65800cb commit a4378fc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/qt/transactiontablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,7 @@ void TransactionTableModel::updateAddressBook(const QString& address, const QStr
void TransactionTableModel::updateConfirmations()
{
// Blocks came in since last poll.
// Invalidate status (number of confirmations) and (possibly) description
// 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));
Q_EMIT dataChanged(QModelIndex(), QModelIndex());
}


Expand Down Expand Up @@ -798,7 +795,7 @@ void TransactionTableModel::updateDisplayUnit()
{
// emit dataChanged to update Amount column with the current unit
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)
Expand Down

0 comments on commit a4378fc

Please sign in to comment.