aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactiontablemodel.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-10-14 20:39:00 -0700
committerGavin Andresen <[email protected]>2013-10-14 20:39:00 -0700
commitb9beea6e9d0f789f11d249b040e549d535bdc295 (patch)
treee87c3422b52b1f6d78b88b9cea756c1f3cb8d37b /src/qt/transactiontablemodel.cpp
parentMerge pull request #2933 from sipa/leveldb113 (diff)
parentRefactor/encapsulate chain globals into a CChain class (diff)
downloaddiscoin-b9beea6e9d0f789f11d249b040e549d535bdc295.tar.xz
discoin-b9beea6e9d0f789f11d249b040e549d535bdc295.zip
Merge pull request #3077 from sipa/chain
Refactor/encapsulate chain globals into a CChain class
Diffstat (limited to 'src/qt/transactiontablemodel.cpp')
-rw-r--r--src/qt/transactiontablemodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
index 07f6a6215..6f7a5933a 100644
--- a/src/qt/transactiontablemodel.cpp
+++ b/src/qt/transactiontablemodel.cpp
@@ -250,9 +250,9 @@ void TransactionTableModel::updateTransaction(const QString &hash, int status)
void TransactionTableModel::updateConfirmations()
{
- if(nBestHeight != cachedNumBlocks)
+ if(chainActive.Height() != cachedNumBlocks)
{
- cachedNumBlocks = nBestHeight;
+ cachedNumBlocks = chainActive.Height();
// 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