mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Switch transaction table to use wallet height not node height
Tweak of #17905 to make gui display of transactions and balances more consistent. This change shouldn't cause visible effects in normal cases, just make GUI wallet code more internally correct and consistent.
This commit is contained in:
parent
608359b071
commit
83f69fab3a
2 changed files with 2 additions and 2 deletions
|
@ -664,7 +664,7 @@ QVariant TransactionTableModel::headerData(int section, Qt::Orientation orientat
|
|||
QModelIndex TransactionTableModel::index(int row, int column, const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
TransactionRecord *data = priv->index(walletModel->wallet(), walletModel->clientModel().getNumBlocks(), row);
|
||||
TransactionRecord *data = priv->index(walletModel->wallet(), walletModel->getNumBlocks(), row);
|
||||
if(data)
|
||||
{
|
||||
return createIndex(row, column, data);
|
||||
|
|
|
@ -144,7 +144,7 @@ public:
|
|||
|
||||
interfaces::Node& node() const { return m_node; }
|
||||
interfaces::Wallet& wallet() const { return *m_wallet; }
|
||||
ClientModel& clientModel() const { return m_client_model; }
|
||||
int getNumBlocks() const { return cachedNumBlocks; }
|
||||
|
||||
QString getWalletName() const;
|
||||
QString getDisplayName() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue