aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2016-07-19 15:49:50 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2016-08-26 09:53:09 +0200
commita001f1880283089d3eb0aa83e889d9707d79fd5f (patch)
tree1de8dacdf8f8aff2a6b4c36d70531aa5f97d474d /src/qt/clientmodel.cpp
parentbd44a04dc3fe94d2764fadd9f9a7deb81ff49f45 (diff)
downloadbitcoin-a001f1880283089d3eb0aa83e889d9707d79fd5f.tar.xz
[Qt] Always pass the numBlocksChanged signal for headers tip changed
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index 14661b857a..30f412dd23 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -234,7 +234,7 @@ static void BlockTipChanged(ClientModel *clientmodel, bool initialSync, const CB
int64_t& nLastUpdateNotification = fHeader ? nLastHeaderTipUpdateNotification : nLastBlockTipUpdateNotification;
// if we are in-sync, update the UI regardless of last update time
- if (!initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
+ if (fHeader || !initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
//pass a async signal to the UI thread
QMetaObject::invokeMethod(clientmodel, "numBlocksChanged", Qt::QueuedConnection,
Q_ARG(int, pIndex->nHeight),