aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2016-07-19 15:49:50 +0200
committerJonas Schnelli <[email protected]>2016-08-26 09:53:09 +0200
commita001f1880283089d3eb0aa83e889d9707d79fd5f (patch)
tree1de8dacdf8f8aff2a6b4c36d70531aa5f97d474d /src/qt/clientmodel.cpp
parent[Qt] make Out-Of-Sync warning icon clickable (diff)
downloaddiscoin-a001f1880283089d3eb0aa83e889d9707d79fd5f.tar.xz
discoin-a001f1880283089d3eb0aa83e889d9707d79fd5f.zip
[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 14661b857..30f412dd2 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),