From a4378fc2ff7f613c03df5e7e0bf93391e333e554 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sat, 7 Dec 2024 00:38:26 +0300 Subject: [PATCH] fix(qt): emit dataChanged for the whole model in TransactionTableModel --- src/qt/transactiontablemodel.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp index 01de92c61d..88966299f7 100644 --- a/src/qt/transactiontablemodel.cpp +++ b/src/qt/transactiontablemodel.cpp @@ -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()); } @@ -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)