diff options
| author | Pieter Wuille <[email protected]> | 2013-10-10 23:07:44 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-10-11 23:25:50 +0200 |
| commit | 4c6d41b8b653ef90639b1a32f6aab0bb1cef90c5 (patch) | |
| tree | 3e29135e08fa64984cd47fdfeda42d55e7e51ad8 /src/qt/walletmodel.cpp | |
| parent | Merge pull request #3081 from Diapolo/silence_compiler (diff) | |
| download | discoin-4c6d41b8b653ef90639b1a32f6aab0bb1cef90c5.tar.xz discoin-4c6d41b8b653ef90639b1a32f6aab0bb1cef90c5.zip | |
Refactor/encapsulate chain globals into a CChain class
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index bda39b675..099fbe8dc 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -73,10 +73,10 @@ void WalletModel::updateStatus() void WalletModel::pollBalanceChanged() { - if(nBestHeight != cachedNumBlocks) + if(chainActive.Height() != cachedNumBlocks) { // Balance and number of transactions might have changed - cachedNumBlocks = nBestHeight; + cachedNumBlocks = chainActive.Height(); checkBalanceChanged(); } } |